2012-01-02 19:16:29 -05:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
2012-04-14 12:48:11 -04:00
|
|
|
{ derivations, manifest }:
|
2003-11-19 12:27:16 -05:00
|
|
|
|
2012-12-04 08:20:36 -05:00
|
|
|
derivation {
|
2003-11-19 12:27:16 -05:00
|
|
|
name = "user-environment";
|
2012-04-14 12:48:11 -04:00
|
|
|
system = builtins.currentSystem;
|
2012-01-02 19:16:29 -05:00
|
|
|
builder = perl;
|
|
|
|
args = [ "-w" ./buildenv.pl ];
|
2012-12-04 08:20:36 -05:00
|
|
|
|
2003-11-19 12:27:16 -05:00
|
|
|
manifest = manifest;
|
2007-04-27 18:40:59 -04:00
|
|
|
|
|
|
|
# !!! grmbl, need structured data for passing this in a clean way.
|
2012-12-04 08:20:36 -05:00
|
|
|
derivations =
|
|
|
|
map (d:
|
2012-12-04 08:30:34 -05:00
|
|
|
[ (d.meta.active or "true")
|
2012-12-04 08:20:36 -05:00
|
|
|
(d.meta.priority or 5)
|
|
|
|
(builtins.length d.outputs)
|
|
|
|
] ++ map (output: builtins.getAttr output d) d.outputs)
|
|
|
|
derivations;
|
2010-08-04 08:13:58 -04:00
|
|
|
|
|
|
|
# Building user environments remotely just causes huge amounts of
|
|
|
|
# network traffic, so don't do that.
|
|
|
|
preferLocalBuild = true;
|
2012-05-09 22:14:36 -04:00
|
|
|
|
|
|
|
# Don't build in a chroot because Nix's dependencies may not be there.
|
|
|
|
__noChroot = true;
|
2003-11-19 12:27:16 -05:00
|
|
|
}
|