repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
typioca: 2.7.0 -> 2.8.0
[NixPkgs.git]
/
pkgs
/
os-specific
/
darwin
/
signing-utils
/
post-link-sign-hook.nix
blob
13595e3771a7ab24a1210d747823a56bef488360
1
{ writeTextFile, cctools, sigtool }:
2
3
writeTextFile {
4
name = "post-link-sign-hook";
5
executable = true;
6
7
text = ''
8
if [ "$linkerOutput" != "/dev/null" ]; then
9
CODESIGN_ALLOCATE=${cctools}/bin/${cctools.targetPrefix}codesign_allocate \
10
${sigtool}/bin/codesign -f -s - "$linkerOutput"
11
fi
12
'';
13
}