diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-11-14 09:19:31 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-11-14 09:19:31 +0100 |
commit | da6239dab3d712aa335fd0928c4e64f9599fef73 (patch) | |
tree | cbe83b9a3bc9232ce60e52a88f877cfef5f6593b /pkgs/tools/misc | |
parent | 463f738cc682811181f6818297db4ba7b660320c (diff) | |
parent | f2b81a021eccc072029f8a93b45b2c9a9ce0aa2a (diff) |
Merge #98541 into staging-next
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/trash-cli/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/misc/trash-cli/default.nix b/pkgs/tools/misc/trash-cli/default.nix index d7354425b7cd7..2f5a52531b9db 100644 --- a/pkgs/tools/misc/trash-cli/default.nix +++ b/pkgs/tools/misc/trash-cli/default.nix @@ -16,8 +16,10 @@ python3Packages.buildPythonApplication rec { (substituteAll { src = ./nix-paths.patch; df = "${coreutils}/bin/df"; - libc = let ext = if stdenv.isDarwin then ".dylib" else ".so.6"; - in "${stdenv.cc.libc}/lib/libc${ext}"; + libc = + if stdenv.hostPlatform.isDarwin + then "/usr/lib/libSystem.dylib" + else "${stdenv.cc.libc}/lib/libc.so.6"; }) ]; |