Files
nixpkgs/pkgs/development/compilers/dotnet/sigtool.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

28 lines
650 B
Nix

{
cctools,
darwin,
fetchFromGitHub,
makeWrapper,
}:
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"
'';
})