tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
re-fix evaluation of libSystemClosure
Jude Taylor
10 years ago
c70ec3ec
9685b08d
+9
-8
1 changed file
expand all
collapse all
unified
split
pkgs
stdenv
pure-darwin
default.nix
+9
-8
pkgs/stdenv/pure-darwin/default.nix
···
6
7
let
8
# 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 [
11
"/usr/lib/libSystem.dylib"
12
"/usr/lib/libSystem.B.dylib"
13
"/usr/lib/libobjc.A.dylib"
···
17
"/usr/lib/libc++.1.dylib"
18
"/usr/lib/libDiagnosticMessagesClient.dylib"
19
"/usr/lib/system"
20
-
]
21
-
else [];
22
23
-
fetch = { file, sha256 }: derivation ((import <nix/fetchurl.nix> {
24
url = "https://dl.dropboxusercontent.com/u/2857322/${file}";
25
inherit sha256;
26
executable = true;
27
-
}).drvAttrs // {
28
-
__impureHostDeps = libSystemClosure;
29
-
});
0
0
0
30
31
bootstrapFiles = {
32
sh = fetch { file = "sh"; sha256 = "1qakpg37vl61jnkplz13m3g1csqr85cg8ybp6jwiv6apmg26isnm"; };
···
6
7
let
8
# libSystem and its transitive dependencies. Get used to this; it's a recurring theme in darwin land
9
+
libSystemClosure = [
0
10
"/usr/lib/libSystem.dylib"
11
"/usr/lib/libSystem.B.dylib"
12
"/usr/lib/libobjc.A.dylib"
···
16
"/usr/lib/libc++.1.dylib"
17
"/usr/lib/libDiagnosticMessagesClient.dylib"
18
"/usr/lib/system"
19
+
];
0
20
21
+
fetch = { file, sha256 }: let drv = import <nix/fetchurl.nix> {
22
url = "https://dl.dropboxusercontent.com/u/2857322/${file}";
23
inherit sha256;
24
executable = true;
25
+
}; in
26
+
if drv.drvAttrs.system == "x86_64-darwin"
27
+
then derivation (drv.drvAttrs // {
28
+
__impureHostDeps = libSystemClosure;
29
+
})
30
+
else drv;
31
32
bootstrapFiles = {
33
sh = fetch { file = "sh"; sha256 = "1qakpg37vl61jnkplz13m3g1csqr85cg8ybp6jwiv6apmg26isnm"; };