Merge pull request #17062 from johbo/darwin-s3cmd

s3cmd: Fix file library path for darwin
This commit is contained in:
Daniel Peebles 2016-07-18 13:07:15 -04:00 committed by GitHub
commit e556effc09

View File

@ -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;