mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
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:
parent
35b13b52cd
commit
cfa1f136db
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue