diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-01-03T12·59+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-01-03T12·59+0000 |
commit | 6c31232e1494d1d68a31fb8433dbf593f831dff2 (patch) | |
tree | 9acd7f0e2279bd971b5ccd1f1eb8cec8b7937003 /corepkgs/buildenv.nix | |
parent | 502d94048ae848eda1fcda2d1e72b339eaa653aa (diff) | |
parent | 63227d434cefaa9faeb14afe28ebeb9b2d449ee2 (diff) |
* Sync with the trunk.
Diffstat (limited to 'corepkgs/buildenv.nix')
-rw-r--r-- | corepkgs/buildenv.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/corepkgs/buildenv.nix b/corepkgs/buildenv.nix new file mode 100644 index 000000000000..6e2bee10b1e7 --- /dev/null +++ b/corepkgs/buildenv.nix @@ -0,0 +1,21 @@ +with import <nix/config.nix>; + +{ system, derivations, manifest }: + +derivation { + name = "user-environment"; + system = system; + builder = perl; + args = [ "-w" ./buildenv.pl ]; + + manifest = manifest; + + # !!! grmbl, need structured data for passing this in a clean way. + paths = derivations; + active = map (x: if x ? meta && x.meta ? active then x.meta.active else "true") derivations; + priority = map (x: if x ? meta && x.meta ? priority then x.meta.priority else "5") derivations; + + # Building user environments remotely just causes huge amounts of + # network traffic, so don't do that. + preferLocalBuild = true; +} |