libdeflate: fix dylib install name

This commit is contained in:
Andrew Childs 2021-03-16 22:09:39 +09:00 committed by Frederik Rietdijk
parent 974e83db9a
commit 6ea779b95c

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub }:
{ stdenv, lib, fetchFromGitHub, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
pname = "libdeflate";
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace /usr/local $out
'';
nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
configurePhase = ''
make programs/config.h
'';