mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
opensubdiv: Add a static output
This commit is contained in:
parent
1c54fb7d9c
commit
4c2bd62904
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-uDKCT0Uoa5WQekMUFm2iZmzm+oWAZ6IWMwfpchkUZY0=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
outputs = [ "out" "dev" "static" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
@ -65,7 +65,9 @@ stdenv.mkDerivation rec {
|
||||
NIX_BUILD_CORES=$(( NIX_BUILD_CORES < ${toString maxBuildCores} ? NIX_BUILD_CORES : ${toString maxBuildCores} ))
|
||||
'';
|
||||
|
||||
postInstall = "rm $out/lib/*.a";
|
||||
postInstall = ''
|
||||
moveToOutput "lib/*.a" $static
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An Open-Source subdivision surface library";
|
||||
|
Loading…
Reference in New Issue
Block a user