2012-01-03 02:16:29 +02:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
2012-04-14 19:48:11 +03:00
|
|
|
{ derivations, manifest }:
|
2003-11-19 19:27:16 +02:00
|
|
|
|
2012-12-04 15:20:36 +02:00
|
|
|
derivation {
|
2003-11-19 19:27:16 +02:00
|
|
|
name = "user-environment";
|
2012-04-14 19:48:11 +03:00
|
|
|
system = builtins.currentSystem;
|
2012-01-03 02:16:29 +02:00
|
|
|
builder = perl;
|
|
|
|
args = [ "-w" ./buildenv.pl ];
|
2012-12-04 15:20:36 +02:00
|
|
|
|
2003-11-19 19:27:16 +02:00
|
|
|
manifest = manifest;
|
2007-04-28 01:40:59 +03:00
|
|
|
|
|
|
|
# !!! grmbl, need structured data for passing this in a clean way.
|
2012-12-04 15:20:36 +02:00
|
|
|
derivations =
|
|
|
|
map (d:
|
2012-12-04 15:30:34 +02:00
|
|
|
[ (d.meta.active or "true")
|
2012-12-04 15:20:36 +02:00
|
|
|
(d.meta.priority or 5)
|
|
|
|
(builtins.length d.outputs)
|
|
|
|
] ++ map (output: builtins.getAttr output d) d.outputs)
|
|
|
|
derivations;
|
2010-08-04 15:13:58 +03:00
|
|
|
|
|
|
|
# Building user environments remotely just causes huge amounts of
|
|
|
|
# network traffic, so don't do that.
|
|
|
|
preferLocalBuild = true;
|
2012-05-10 05:14:36 +03:00
|
|
|
|
2015-09-29 19:03:19 +03:00
|
|
|
__impureHostDeps = [
|
|
|
|
"/usr/lib/libSystem.dylib"
|
|
|
|
"/usr/lib/libSystem.B.dylib"
|
|
|
|
"/usr/lib/libobjc.A.dylib"
|
|
|
|
"/usr/lib/libobjc.dylib"
|
|
|
|
"/usr/lib/libauto.dylib"
|
|
|
|
"/usr/lib/libc++abi.dylib"
|
|
|
|
"/usr/lib/libc++.1.dylib"
|
|
|
|
"/usr/lib/libDiagnosticMessagesClient.dylib"
|
|
|
|
"/usr/lib/system"
|
|
|
|
];
|
|
|
|
|
2015-03-24 12:15:45 +02:00
|
|
|
inherit chrootDeps;
|
2003-11-19 19:27:16 +02:00
|
|
|
}
|