diff options
Diffstat (limited to 'env')
| -rw-r--r-- | env/nixpkgs-patches/289217.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/env/nixpkgs-patches/289217.diff b/env/nixpkgs-patches/289217.diff new file mode 100644 index 0000000..40204b4 --- /dev/null +++ b/env/nixpkgs-patches/289217.diff @@ -0,0 +1,24 @@ +diff --git a/pkgs/development/compilers/shaderc/default.nix b/pkgs/development/compilers/shaderc/default.nix +index 8982382247939b..35a32dc6e8bf1b 100644 +--- a/pkgs/development/compilers/shaderc/default.nix ++++ b/pkgs/development/compilers/shaderc/default.nix +@@ -48,9 +48,16 @@ stdenv.mkDerivation rec { + ++ lib.optionals stdenv.isDarwin [ cctools ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ]; + +- postInstall = '' +- moveToOutput "lib/*.a" $static +- ''; ++ postInstall = if stdenv.targetPlatform.isWindows then ++ # There are only static libraries on windows so link the outputs ++ '' ++ ln -s $lib $static ++ '' ++ else ++ '' ++ moveToOutput "lib/*.a" $static ++ '' ++ ; + + cmakeFlags = [ "-DSHADERC_SKIP_TESTS=ON" ]; + |