about summary refs log tree commit diff
path: root/pkgs/development/libraries/opensubdiv
diff options
context:
space:
mode:
authorAshley Ruglys <ashley.ruglys@gmail.com>2024-02-15 22:11:53 +1300
committerAshley Ruglys <ashley.ruglys@gmail.com>2024-02-15 22:11:53 +1300
commit4c2bd62904c5a39593f7c7ce4558aaadf1568c75 (patch)
tree30b8dfa6035f2e26cd5f4def479c8f1aef6d7dc3 /pkgs/development/libraries/opensubdiv
parent1c54fb7d9cc745566823f1d7ae2ebd7d142dde5d (diff)
opensubdiv: Add a static output
Diffstat (limited to 'pkgs/development/libraries/opensubdiv')
-rw-r--r--pkgs/development/libraries/opensubdiv/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/opensubdiv/default.nix b/pkgs/development/libraries/opensubdiv/default.nix
index 9c485949a5c09..e3bf614d9886f 100644
--- a/pkgs/development/libraries/opensubdiv/default.nix
+++ b/pkgs/development/libraries/opensubdiv/default.nix
@@ -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";