about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-08-13 03:26:34 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-08-13 03:26:34 +0200
commitf6b2fd004b0aa86cc0954c2ec524021484f93364 (patch)
treec23d1640ce26d7bd973aa8ee1a4b812115e0d4c2 /release.nix
parentfc99b18f9bcd61c3eca4194bf3d20405f3aff25f (diff)
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix3
1 files changed, 2 insertions, 1 deletions
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;