Merge pull request #17062 from johbo/darwin-s3cmd
s3cmd: Fix file library path for darwin
commite556effc09778077413bbeff9a0fe8f27e793c56
authorDaniel Peebles <copumpkin@users.noreply.github.com>
dateMon 18 Jul 2016, 13:07 (10 years ago)
parenta8c25d0b18dde4
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;