2012-01-03 00:16:29 +00:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
|
|
|
{ system, derivations, manifest }:
|
2003-11-19 17:27:16 +00:00
|
|
|
|
|
|
|
derivation {
|
|
|
|
name = "user-environment";
|
|
|
|
system = system;
|
2012-01-03 00:16:29 +00:00
|
|
|
builder = perl;
|
|
|
|
args = [ "-w" ./buildenv.pl ];
|
2007-04-27 23:28:44 +00:00
|
|
|
|
2003-11-19 17:27:16 +00:00
|
|
|
manifest = manifest;
|
2007-04-27 22:40:59 +00:00
|
|
|
|
|
|
|
# !!! grmbl, need structured data for passing this in a clean way.
|
2007-04-27 23:28:44 +00:00
|
|
|
paths = derivations;
|
2007-04-27 22:40:59 +00:00
|
|
|
active = map (x: if x ? meta && x.meta ? active then x.meta.active else "true") derivations;
|
2007-04-27 23:28:44 +00:00
|
|
|
priority = map (x: if x ? meta && x.meta ? priority then x.meta.priority else "5") derivations;
|
2010-08-04 12:13:58 +00:00
|
|
|
|
|
|
|
# Building user environments remotely just causes huge amounts of
|
|
|
|
# network traffic, so don't do that.
|
|
|
|
preferLocalBuild = true;
|
2003-11-19 17:27:16 +00:00
|
|
|
}
|