dclxvi: fix darwin build

This commit is contained in:
Matthew Bauer 2016-08-11 22:16:25 -05:00
parent 58eb27f5ed
commit 7afc589d7d
1 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,14 @@ stdenv.mkDerivation {
buildFlags = [ "libdclxvipairing.so" ];
patchPhase = ''
substituteInPlace Makefile \
--replace "gcc" "cc"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \
--replace "-soname=libdclxvipairing.so" "-install_name,libdclxvipairing.so"
'';
installPhase = ''
mkdir -p $out/{include,lib}
find . -name \*.h -exec cp {} $out/include \;