diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-02-08 14:30:24 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-02-08 14:33:34 +0100 |
commit | fcf2866023abcf971f9aa21a795cb6fef57627b5 (patch) | |
tree | 798a8715399bf0d06f8029d6f93535338c51eee3 /release.nix | |
parent | e01247cb10c8fdf4b36db609b3f2b80303a28ac8 (diff) |
lib/call-machine: Introduce .build shortcut
The shortcut is mainly to make things a bit easier, instead of: nix-build '<vuizvui/machines>' \ -A aszlig.tishtushi.eval.config.system.build.toplevel We can now do something like this: nix-build '<vuizvui/machines>' \ -A aszlig.tishtushi.build ... in order to get a system store path out of a machine definition. This also fixes an evaluation error in the top-level default.nix. Thanks to @Profpatsch for bringing this to my attention. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r-- | release.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release.nix b/release.nix index 04bc5218..74cf1149 100644 --- a/release.nix +++ b/release.nix @@ -48,9 +48,9 @@ let in with pkgsUpstream.lib; with builtins; { - machines = mapAttrsRecursiveCond (m: !(m ? eval)) (path: attrs: - attrs.eval.config.system.build.toplevel - ) allMachines; + machines = let + getBuild = const (getAttr "build"); + in mapAttrsRecursiveCond (m: !(m ? eval)) getBuild allMachines; isoImages = let buildIso = attrs: let |