From 92e495b6b19afe7b0a5627c0bf6c3cc55b9034dd Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 27 Jun 2015 17:43:53 +0200 Subject: release.nix: Build ISO images for all machines. Originally only needed for "kzerza", because that machine has always resided on an USB stick, but could be useful for "arilou" and others as well. That way you always have a (hopefully working) USB and CD image available for all machines. Signed-off-by: aszlig --- release.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'release.nix') diff --git a/release.nix b/release.nix index 723bbc8c..32f73a24 100644 --- a/release.nix +++ b/release.nix @@ -56,6 +56,21 @@ in with pkgsUpstream.lib; with builtins; { attrs.build.config.system.build.toplevel ) (import "${vuizvui}/machines" { inherit system; }); + isoImages = let + machineBase = import "${vuizvui}/machines" { inherit system; }; + buildIso = attrs: let + name = attrs.iso.config.networking.hostName; + in pkgsUpstream.runCommand "vuizvui-iso-${name}" { + meta.description = "Live CD/USB stick of ${name}"; + iso = attrs.iso.config.system.build.isoImage; + passthru.config = attrs.iso.config; + } '' + mkdir -p "$out/nix-support" + echo "file iso" $iso/iso/*.iso* \ + >> "$out/nix-support/hydra-build-products" + ''; + in mapAttrsRecursiveCond (m: !(m ? iso)) (const buildIso) machineBase; + tests = mapAttrsRecursiveCond (t: !(t ? test)) (const id) (import "${vuizvui}/tests" { inherit system; }); -- cgit 1.4.1