From 58a526010ce3c8e8c9183cf14fead8fa4fe32418 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 8 Feb 2016 14:45:05 +0100 Subject: default.nix: Just make an alias to ./machines Suggestion by @Profpatsch to introduce consistent behaviour of the top- level expression so we can now use: nix-build '' -A machines.aszlig.tishtushi.build .. the same way as: nix-build '' -A aszlig.tishtushi.build Signed-off-by: aszlig --- default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index a6ac9441..68a66670 100644 --- a/default.nix +++ b/default.nix @@ -3,10 +3,9 @@ with (import (import ./nixpkgs-path.nix) { inherit system; }).lib; { - machines = let - getBuild = const (getAttr "build"); - allMachines = import ./machines { inherit system; }; - in mapAttrsRecursiveCond (m: !(m ? eval)) getBuild allMachines; + machines = import ./machines { + inherit system; + }; pkgs = import ./pkgs { pkgs = import (import ./nixpkgs-path.nix) args; -- cgit 1.4.1