s3cmd: Fix file library path for darwin

This commit is contained in:
Johannes Bornhold 2016-07-18 13:35:20 +02:00
parent 52896c8c86
commit b18dde4593

@ -12417,7 +12417,7 @@ in modules // {
propagatedBuildInputs = with self; [ pkgs.file ];
patchPhase = ''
substituteInPlace magic.py --replace "ctypes.util.find_library('magic')" "'${pkgs.file}/lib/libmagic.so'"
substituteInPlace magic.py --replace "ctypes.util.find_library('magic')" "'${pkgs.file}/lib/libmagic.${if stdenv.isDarwin then "dylib" else "so"}'"
'';
doCheck = false;