typioca: 2.7.0 -> 2.8.0
[NixPkgs.git] / pkgs / os-specific / darwin / signing-utils / post-link-sign-hook.nix
blob13595e3771a7ab24a1210d747823a56bef488360
1 { writeTextFile, cctools, sigtool }:
3 writeTextFile {
4   name = "post-link-sign-hook";
5   executable = true;
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   '';