mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 20:48:32 +03:00
14 lines
321 B
Nix
14 lines
321 B
Nix
{ writeTextFile, cctools, sigtool }:
|
|
|
|
writeTextFile {
|
|
name = "post-link-sign-hook";
|
|
executable = true;
|
|
|
|
text = ''
|
|
if [ "$linkerOutput" != "/dev/null" ]; then
|
|
CODESIGN_ALLOCATE=${cctools}/bin/${cctools.targetPrefix}codesign_allocate \
|
|
${sigtool}/bin/codesign -f -s - "$linkerOutput"
|
|
fi
|
|
'';
|
|
}
|