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
1 changed files with 3 additions and 1 deletions

View File

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