From f6b2fd004b0aa86cc0954c2ec524021484f93364 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 13 Aug 2015 03:26:34 +0200 Subject: release.nix: Only build ISOs if createISO is set. Here we have our actual implementation. Note however, that one can still build an ISO image out of any machine by using: nix-build machines -A machine.attr.iso.config.system.build.isoImage However, none of these ISOs are built by default, except for kzerza, which has vuizvui.createISO enabled. The implementation has one little goof as it creates empty attrsets if a particular machine doesn't have createISO enabled. But for our current purposes that's okay "enough". Signed-off-by: aszlig --- release.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'release.nix') diff --git a/release.nix b/release.nix index 9b83605c..478fcf15 100644 --- a/release.nix +++ b/release.nix @@ -47,7 +47,8 @@ in with pkgsUpstream.lib; with builtins; { machineBase = import "${vuizvui}/machines" { inherit system; }; buildIso = attrs: let name = attrs.iso.config.networking.hostName; - in pkgsUpstream.runCommand "vuizvui-iso-${name}" { + cond = attrs.iso.config.vuizvui.createISO; + in if !cond then {} else 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; -- cgit 1.4.1