trash-cli: remove reference to libSystem.dylib proxy on darwin

This commit is contained in:
Andrew Childs 2020-11-10 11:23:49 +09:00
parent 47c770e0e6
commit 70f3863540

View file

@ -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";
})
# Fix build on Python 3.6.