about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2024-02-16 10:28:44 +0100
committerGitHub <noreply@github.com>2024-02-16 10:28:44 +0100
commit7c476f3b99e5e8340c3c6cccca009c410e01d999 (patch)
tree864df00d0f62e5b5f7f18f22ed176f7735b45578
parente780bc9f10fd0b78e25e114c1145d61eab8ad4e1 (diff)
parent4c2bd62904c5a39593f7c7ce4558aaadf1568c75 (diff)
downloadnixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.tar
nixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.tar.gz
nixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.tar.bz2
nixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.tar.lz
nixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.tar.xz
nixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.tar.zst
nixlib-7c476f3b99e5e8340c3c6cccca009c410e01d999.zip
Merge pull request #288993 from expenses/opensubdiv-static
opensubdiv: Add a static output
-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 9c485949a5c0..e3bf614d9886 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";