s3cmd: Fix file library path for darwin
commitb18dde4593fcf2789031ca185e4fe7e55670cb55
authorJohannes Bornhold <johannes@bornhold.name>
dateMon 18 Jul 2016, 13:35 (10 years ago)
parent52896c8
pkgs/top-level/python-packages.nix+1−1
@@ -12417,7 +12417,7 @@ in modules // {
1241712417 propagatedBuildInputs = with self; [ pkgs.file ];
1241812418
1241912419 patchPhase = ''
12420− substituteInPlace magic.py --replace "ctypes.util.find_library('magic')" "'${pkgs.file}/lib/libmagic.so'"
12420+ substituteInPlace magic.py --replace "ctypes.util.find_library('magic')" "'${pkgs.file}/lib/libmagic.${if stdenv.isDarwin then "dylib" else "so"}'"
1242112421 '';
1242212422
1242312423 doCheck = false;