3
0
Fork 0
forked from mirrors/nixpkgs

lz4: split binaries into a separate output

It's a little suspicious that the binaries are (apparently)
linked statically, but I assume upstream has some reasons (e.g. speed).
This commit is contained in:
Vladimír Čunát 2020-02-10 21:31:48 +01:00
parent 35b13b52cd
commit cfa1f136db
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
];
# TODO(@Ericson2314): Separate binaries and libraries
outputs = [ "out" "dev" ];
outputs = [ "bin" "out" "dev" ];
buildInputs = stdenv.lib.optional doCheck valgrind;
@ -47,6 +47,9 @@ stdenv.mkDerivation rec {
stdenv.lib.optionalString stdenv.hostPlatform.isWindows ''
mv $out/bin/*.dll $out/lib
ln -s $out/lib/*.dll
''
+ ''
moveToOutput bin "$bin"
'';
meta = with stdenv.lib; {