tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
darwin.postLinkSignHook: init
Andrew Childs
4 years ago
bfd9a778
4c890ce9
+16
1 changed file
expand all
collapse all
unified
split
pkgs
top-level
darwin-packages.nix
+16
pkgs/top-level/darwin-packages.nix
···
14
selfTargetTarget = pkgsTargetTarget.darwin or {}; # might be missing
15
};
16
0
0
0
0
0
0
17
in
18
19
lib.makeScopeWithSplicing splicePackages newScope otherSplices (_: {}) (spliced: spliced.apple_sdk.frameworks) (self: let
···
103
} ../os-specific/darwin/print-reexports/setup-hook.sh;
104
105
sigtool = callPackage ../os-specific/darwin/sigtool { };
0
0
0
0
0
0
0
0
0
0
106
107
maloader = callPackage ../os-specific/darwin/maloader {
108
};
···
14
selfTargetTarget = pkgsTargetTarget.darwin or {}; # might be missing
15
};
16
17
+
# Prefix for binaries. Customarily ends with a dash separator.
18
+
#
19
+
# TODO(@Ericson2314) Make unconditional, or optional but always true by
20
+
# default.
21
+
targetPrefix = lib.optionalString (stdenv.targetPlatform != stdenv.hostPlatform)
22
+
(stdenv.targetPlatform.config + "-");
23
in
24
25
lib.makeScopeWithSplicing splicePackages newScope otherSplices (_: {}) (spliced: spliced.apple_sdk.frameworks) (self: let
···
109
} ../os-specific/darwin/print-reexports/setup-hook.sh;
110
111
sigtool = callPackage ../os-specific/darwin/sigtool { };
112
+
113
+
postLinkSignHook = pkgs.writeTextFile {
114
+
name = "post-link-sign-hook";
115
+
executable = true;
116
+
117
+
text = ''
118
+
CODESIGN_ALLOCATE=${targetPrefix}codesign_allocate \
119
+
${self.sigtool}/bin/codesign -f -s - "$linkerOutput"
120
+
'';
121
+
};
122
123
maloader = callPackage ../os-specific/darwin/maloader {
124
};