Merge pull request #272434 from XYenon/master

ouch: fix build on darwin

authored by figsoda and committed by GitHub 23eb27c2 f800dd16

+9 -1
+9 -1
pkgs/tools/compression/ouch/default.nix
··· 7 , xz 8 , zlib 9 , zstd 10 }: 11 12 rustPlatform.buildRustPackage rec { ··· 28 29 buildFeatures = [ "zstd/pkg-config" ]; 30 31 postInstall = '' 32 installManPage artifacts/*.1 33 installShellCompletion artifacts/ouch.{bash,fish} --zsh artifacts/_ouch 34 ''; 35 36 - env.OUCH_ARTIFACTS_FOLDER = "artifacts"; 37 38 meta = with lib; { 39 description = "A command-line utility for easily compressing and decompressing files and directories";
··· 7 , xz 8 , zlib 9 , zstd 10 + , stdenv 11 }: 12 13 rustPlatform.buildRustPackage rec { ··· 29 30 buildFeatures = [ "zstd/pkg-config" ]; 31 32 + preCheck = '' 33 + substituteInPlace tests/ui.rs \ 34 + --replace 'format!(r"/private{path}")' 'path.to_string()' 35 + ''; 36 + 37 postInstall = '' 38 installManPage artifacts/*.1 39 installShellCompletion artifacts/ouch.{bash,fish} --zsh artifacts/_ouch 40 ''; 41 42 + env = { OUCH_ARTIFACTS_FOLDER = "artifacts"; } // 43 + # Work around https://github.com/NixOS/nixpkgs/issues/166205. 44 + lib.optionalAttrs stdenv.cc.isClang { NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; }; 45 46 meta = with lib; { 47 description = "A command-line utility for easily compressing and decompressing files and directories";