From e9475ce94ba69bd437d8cf0cf3f78062be928568 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 7 Jun 2025 11:54:55 -0400 Subject: Clarify and fix various sink behaviors Signed-off-by: Andrew Opalach --- env/nixpkgs-patches/289217.diff | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 env/nixpkgs-patches/289217.diff (limited to 'env') 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" ]; + -- cgit v1.2.3-101-g0448