2003-11-19 18:27:16 +01:00
|
|
|
{system, derivations, manifest}:
|
|
|
|
|
|
|
|
derivation {
|
|
|
|
name = "user-environment";
|
|
|
|
system = system;
|
|
|
|
builder = ./builder.pl;
|
2007-04-28 01:28:44 +02:00
|
|
|
|
2003-11-19 18:27:16 +01:00
|
|
|
manifest = manifest;
|
2007-04-28 00:40:59 +02:00
|
|
|
|
|
|
|
# !!! grmbl, need structured data for passing this in a clean way.
|
2007-04-28 01:28:44 +02:00
|
|
|
paths = derivations;
|
2007-04-28 00:40:59 +02:00
|
|
|
active = map (x: if x ? meta && x.meta ? active then x.meta.active else "true") derivations;
|
2007-04-28 01:28:44 +02:00
|
|
|
priority = map (x: if x ? meta && x.meta ? priority then x.meta.priority else "5") derivations;
|
2010-08-04 14:13:58 +02:00
|
|
|
|
|
|
|
# Building user environments remotely just causes huge amounts of
|
|
|
|
# network traffic, so don't do that.
|
|
|
|
preferLocalBuild = true;
|
2003-11-19 18:27:16 +01:00
|
|
|
}
|