Address PR comments

This commit is contained in:
Roman Plášil
2020-02-28 18:50:12 +01:00
committed by Profpatsch
parent f47e6ff4ed
commit 3a3ccb106e
5 changed files with 25 additions and 25 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
pname = "leveldb";
@@ -11,16 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "01kxga1hv4wp94agx5vl3ybxfw5klqrdsrb6p6ywvnjmjxm8322y";
};
nativeBuildInputs = []
++ stdenv.lib.optional stdenv.isDarwin [ fixDarwinDylibNames ];
buildPhase = ''
make all
'';
installPhase = (stdenv.lib.optionalString stdenv.isDarwin ''
for file in out-shared/*.dylib.*.*; do
install_name_tool -id $out/lib/$(basename $file) $file
done
'') + # XXX consider removing above after transition to cmake in the next release
"
installPhase = "
mkdir -p $out/{bin,lib,include}
cp -r include $out