Merge pull request #288993 from expenses/opensubdiv-static

opensubdiv: Add a static output
This commit is contained in:
Pol Dellaiera 2024-02-16 10:28:44 +01:00 committed by GitHub
commit 7c476f3b99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";