diff --git a/pkgs/development/libraries/dclxvi/default.nix b/pkgs/development/libraries/dclxvi/default.nix index 6207f3d2038..f7d7eee91ed 100644 --- a/pkgs/development/libraries/dclxvi/default.nix +++ b/pkgs/development/libraries/dclxvi/default.nix @@ -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 \;