git.iko.soy/typeable/nixpkgs
on master help sign in
re-fix evaluation of libSystemClosure
commitc70ec3ec63dc0ee995ac16cd6699d20934911353 authorJude Taylor <me@jude.bio> dateThu 15 Oct 2015, 17:19 (11 years ago) parent9685b08
1 file changed+9−8
pkgs/stdenv/pure-darwin/default.nix+9−8
pkgs/stdenv/pure-darwin/default.nix+9−8
@@ -6,8 +6,7 @@
66
77let
88 # libSystem and its transitive dependencies. Get used to this; it's a recurring theme in darwin land
9− libSystemClosure = if system == "x86_64-darwin"
10− then [
9+ libSystemClosure = [
1110 "/usr/lib/libSystem.dylib"
1211 "/usr/lib/libSystem.B.dylib"
1312 "/usr/lib/libobjc.A.dylib"
@@ -17,16 +16,18 @@ let
1716 "/usr/lib/libc++.1.dylib"
1817 "/usr/lib/libDiagnosticMessagesClient.dylib"
1918 "/usr/lib/system"
20− ]
21− else [];
19+ ];
2220
23− fetch = { file, sha256 }: derivation ((import <nix/fetchurl.nix> {
21+ fetch = { file, sha256 }: let drv = import <nix/fetchurl.nix> {
2422 url = "https://dl.dropboxusercontent.com/u/2857322/${file}";
2523 inherit sha256;
2624 executable = true;
27− }).drvAttrs // {
28− __impureHostDeps = libSystemClosure;
29− });
25+ }; in
26+ if drv.drvAttrs.system == "x86_64-darwin"
27+ then derivation (drv.drvAttrs // {
28+ __impureHostDeps = libSystemClosure;
29+ })
30+ else drv;
3031
3132 bootstrapFiles = {
3233 sh = fetch { file = "sh"; sha256 = "1qakpg37vl61jnkplz13m3g1csqr85cg8ybp6jwiv6apmg26isnm"; };