diff options
author | Domen Kožar <domen@dev.si> | 2021-11-06 07:14:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 07:14:54 -0600 |
commit | 4c23c4076c9afa61d15562f418676e5b33a272ff (patch) | |
tree | 2aae759cf81361841f7ba5720119eddf19058625 /pkgs/tools/compression | |
parent | 64d85b687d03fa319fb42c471ff70cd67a8eee47 (diff) | |
parent | 7f5ed45b3ac42ded4ac1c6c2598bd3e28d1c975d (diff) |
Merge pull request #143861 from figsoda/crabz-fix-darwin
crabz: fix darwin build
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/crabz/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/compression/crabz/default.nix b/pkgs/tools/compression/crabz/default.nix index ab5cc94b43a12..5eafb3f56145f 100644 --- a/pkgs/tools/compression/crabz/default.nix +++ b/pkgs/tools/compression/crabz/default.nix @@ -29,6 +29,15 @@ rustPlatform.buildRustPackage rec { Security ]; + # link System as a dylib instead of a framework on macos + postPatch = lib.optionalString stdenv.isDarwin '' + core_affinity=../$(stripHash $cargoDeps)/core_affinity + oldHash=$(sha256sum $core_affinity/src/lib.rs | cut -d " " -f 1) + substituteInPlace $core_affinity/src/lib.rs --replace framework dylib + substituteInPlace $core_affinity/.cargo-checksum.json \ + --replace $oldHash $(sha256sum $core_affinity/src/lib.rs | cut -d " " -f 1) + ''; + meta = with lib; { description = "A cross platform, fast, compression and decompression tool"; homepage = "https://github.com/sstadick/crabz"; |