tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
darwin: repair QuartzCore paths
Jude Taylor
10 years ago
657b1ccc
45d8f628
+7
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
darwin
apple-sdk
default.nix
+7
pkgs/os-specific/darwin/apple-sdk/default.nix
···
157
f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h"
158
substituteInPlace "$f" \
159
--replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage"
0
0
0
0
0
0
0
160
'';
161
});
162
};
···
157
f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h"
158
substituteInPlace "$f" \
159
--replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage"
160
+
161
+
# CoreImage.framework's location varies by OSX version
162
+
for linkedFile in "$out/Library/Frameworks/QuartzCore.framework/Frameworks/CoreImage.framework"/*; do
163
+
link=$(readlink "$linkedFile" | sed 's,//,/A/,')
164
+
rm "$linkedFile"
165
+
ln -s "$link" "$linkedFile"
166
+
done
167
'';
168
});
169
};