Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 29 lines 666 B view raw
1{ 2 cctools, 3 darwin, 4 fetchFromGitHub, 5 makeWrapper, 6}: 7 8darwin.sigtool.overrideAttrs (old: { 9 # this is a fork of sigtool that supports -v and --remove-signature, which are 10 # used by the dotnet sdk 11 src = fetchFromGitHub { 12 owner = "corngood"; 13 repo = "sigtool"; 14 rev = "new-commands"; 15 sha256 = "sha256-EVM5ZG3sAHrIXuWrnqA9/4pDkJOpWCeBUl5fh0mkK4k="; 16 }; 17 18 nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ 19 makeWrapper 20 ]; 21 22 postInstall = 23 old.postInstall or "" 24 + '' 25 wrapProgram $out/bin/codesign \ 26 --set-default CODESIGN_ALLOCATE \ 27 "${cctools}/bin/${cctools.targetPrefix}codesign_allocate" 28 ''; 29})