587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
27 lines
668 B
Nix
27 lines
668 B
Nix
{ darwin
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
}:
|
|
let
|
|
cctools = darwin.cctools;
|
|
|
|
in darwin.sigtool.overrideAttrs (old: {
|
|
# this is a fork of sigtool that supports -v and --remove-signature, which are
|
|
# used by the dotnet sdk
|
|
src = fetchFromGitHub {
|
|
owner = "corngood";
|
|
repo = "sigtool";
|
|
rev = "new-commands";
|
|
sha256 = "sha256-EVM5ZG3sAHrIXuWrnqA9/4pDkJOpWCeBUl5fh0mkK4k=";
|
|
};
|
|
|
|
nativeBuildInputs = old.nativeBuildInputs or [] ++ [
|
|
makeWrapper
|
|
];
|
|
|
|
postInstall = old.postInstall or "" + ''
|
|
wrapProgram $out/bin/codesign \
|
|
--set-default CODESIGN_ALLOCATE \
|
|
"${cctools}/bin/${cctools.targetPrefix}codesign_allocate"
|
|
'';
|
|
})
|