re-fix evaluation of libSystemClosure
This commit is contained in:
@@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
# libSystem and its transitive dependencies. Get used to this; it's a recurring theme in darwin land
|
# libSystem and its transitive dependencies. Get used to this; it's a recurring theme in darwin land
|
||||||
libSystemClosure = if system == "x86_64-darwin"
|
libSystemClosure = [
|
||||||
then [
|
|
||||||
"/usr/lib/libSystem.dylib"
|
"/usr/lib/libSystem.dylib"
|
||||||
"/usr/lib/libSystem.B.dylib"
|
"/usr/lib/libSystem.B.dylib"
|
||||||
"/usr/lib/libobjc.A.dylib"
|
"/usr/lib/libobjc.A.dylib"
|
||||||
@@ -17,16 +16,18 @@ let
|
|||||||
"/usr/lib/libc++.1.dylib"
|
"/usr/lib/libc++.1.dylib"
|
||||||
"/usr/lib/libDiagnosticMessagesClient.dylib"
|
"/usr/lib/libDiagnosticMessagesClient.dylib"
|
||||||
"/usr/lib/system"
|
"/usr/lib/system"
|
||||||
]
|
];
|
||||||
else [];
|
|
||||||
|
|
||||||
fetch = { file, sha256 }: derivation ((import <nix/fetchurl.nix> {
|
fetch = { file, sha256 }: let drv = import <nix/fetchurl.nix> {
|
||||||
url = "https://dl.dropboxusercontent.com/u/2857322/${file}";
|
url = "https://dl.dropboxusercontent.com/u/2857322/${file}";
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
executable = true;
|
executable = true;
|
||||||
}).drvAttrs // {
|
}; in
|
||||||
__impureHostDeps = libSystemClosure;
|
if drv.drvAttrs.system == "x86_64-darwin"
|
||||||
});
|
then derivation (drv.drvAttrs // {
|
||||||
|
__impureHostDeps = libSystemClosure;
|
||||||
|
})
|
||||||
|
else drv;
|
||||||
|
|
||||||
bootstrapFiles = {
|
bootstrapFiles = {
|
||||||
sh = fetch { file = "sh"; sha256 = "1qakpg37vl61jnkplz13m3g1csqr85cg8ybp6jwiv6apmg26isnm"; };
|
sh = fetch { file = "sh"; sha256 = "1qakpg37vl61jnkplz13m3g1csqr85cg8ybp6jwiv6apmg26isnm"; };
|
||||||
|
|||||||
Reference in New Issue
Block a user