Commit 86dbc928 authored by sternenseemann's avatar sternenseemann
Browse files

writers: make codesign_allocate available in PATH on aarch64-darwin

codesign_allocate is assumed to be in PATH:

https://github.com/NixOS/nixpkgs/issues/154203
https://github.com/NixOS/nixpkgs/issues/148189

Using an absolute reference in post-link-sign-hook would be another
possibility, but hasn't been fruitful so far:
https://github.com/NixOS/nixpkgs/pull/148282
https://github.com/NixOS/nixpkgs/pull/208120
parent df61cdb8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -76,6 +76,11 @@ let
      passAsFile = [ "content" ];
    } else {
      contentPath = content;
    } // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) {
      # post-link-hook expects codesign_allocate to be in PATH
      # https://github.com/NixOS/nixpkgs/issues/154203
      # https://github.com/NixOS/nixpkgs/issues/148189
      nativeBuildInputs = [ stdenv.cc.bintools ];
    }) ''
      ${compileScript}
      ${lib.optionalString strip