From a4f35a33433a85a5a44c948c2ee2a4c3d4dc5dd1 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 13 Sep 2019 00:10:53 +0200 Subject: [PATCH] add pile --- jobsets.nix | 10 ++++++++- pile.nix | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 pile.nix diff --git a/jobsets.nix b/jobsets.nix index 271b0e5..99a301b 100644 --- a/jobsets.nix +++ b/jobsets.nix @@ -28,7 +28,7 @@ let }) gitUrls); }; jobsets = { - # TODO: pile, host tests + # TODO: host tests spacemsg = mkJobset { description = "Astro's HQ IoT stuff"; nixexprpath = "spacemsg.nix"; @@ -61,6 +61,14 @@ let }; }; + pile = { + description = "Programatically Illuminated Lighting Environment"; + nixexprpath = "pile.nix"; + gitUrls = { + pile = "https://github.com/astro/pile.git master 1"; + }; + }; + }; jobsetsJson = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets ); diff --git a/pile.nix b/pile.nix new file mode 100644 index 0000000..6fbc832 --- /dev/null +++ b/pile.nix @@ -0,0 +1,58 @@ +{ pkgs ? import {}, +}: + +with pkgs; +let + jobs = { + batman-status = rustPlatform.buildRustPackage { + name = "batman-status"; + src = ; + cargoSha256 = "04ibh8d5bjx7m634rq3l1m321glzkrgffd1i6nygi4f8ixzrdaqh"; + }; + ledball = rustPlatform.buildRustPackage { + name = "ledball"; + src = ; + cargoSha256 = "0inij66xyc4m2qca5ww5l177x6mylih13n08ibaxfpv6ngxbwj2k"; + }; + ledball-globe = rustPlatform.buildRustPackage { + name = "ledball-globe"; + src = ; + cargoSha256 = "1aq31rh3kzr42i3hc6hg4837mi2l4xxxgrvvpzpy7mz409ajdimj"; + sourceRoot = "pile/ledball-globe"; + }; + ledball-impacts = rustPlatform.buildRustPackage { + name = "ledball-impacts"; + src = ; + cargoSha256 = "0inij66xyc4m2qca5ww5l177x6mylih13n08ibaxfpv6ngxbwj2k"; + sourceRoot = "pile/ledball-impacts"; + }; + ustripe-pulse = rustPlatform.buildRustPackage { + name = "ustripe-pulse"; + src = ; + buildInputs = [ libpulseaudio.dev ]; + cargoSha256 = "0j41i3lrfkffkzxjg3i4xdzdw2saqvkma74w4y87kq5bqs4wmszd"; + }; + ustripe-sha = rustPlatform.buildRustPackage { + name = "ustripe-sha"; + src = ; + cargoSha256 = "0cqd4ch0m03yaqqxjh0a47jk0p6x7rgcrbdkds46g960lhk4vbb6"; + }; + ustripe-twinkling = rustPlatform.buildRustPackage { + name = "ustripe-twinkling"; + src = ; + cargoSha256 = "060l74c6dln3rk2rp0zb4y198rbwz5hg5dz0hjlw7x362h5jmslw"; + }; + ustriped = stdenv.mkDerivation { + name = "ustriped"; + src = ; + installPhase = '' + mkdir -p $out/bin + cp ustriped $out/bin/ + ''; + }; + # Omitted `ustripe-simplex', a node.js project + # Omitted `pile-top`, unfinished node.js project + # TODO: rstripee rust-embeddeed project + # TODO: build openwrt/nixos for rpi + }; +in builtins.mapAttrs (name: lib.hydraJob) jobs