rocksdb: use split outputs

This commit is contained in:
Michael Bishop 2018-03-11 12:41:57 -03:00
parent ec2981ae3d
commit 859db89a8f
No known key found for this signature in database
GPG Key ID: C294FC1A485A409A

View File

@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
name = "rocksdb-${version}";
version = "5.10.3";
outputs = [ "dev" "out" "static" ];
src = fetchFromGitHub {
owner = "facebook";
repo = "rocksdb";
@ -65,6 +67,8 @@ stdenv.mkDerivation rec {
# Might eventually remove this when we are confident in the build process
echo "BUILD CONFIGURATION FOR SANITY CHECKING"
cat make_config.mk
mkdir -pv $static/lib/
mv -vi $out/lib/librocksdb.a $static/lib/
'';
enableParallelBuilding = true;