mojoshader: move env variable into env for structuredAttrs (#509401)

This commit is contained in:
Jo
2026-04-13 05:54:41 +00:00
committed by GitHub
+3 -1
View File
@@ -40,7 +40,9 @@ stdenv.mkDerivation (finalAttrs: {
fakeGit # https://github.com/icculus/mojoshader/blob/abdc80360c1d4560ab8f356035dcd53ae6e9b87f/CMakeLists.txt#L41-L68
];
NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.hostPlatform.isDarwin) "-I${dxvk_2}/include/dxvk";
env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
NIX_CFLAGS_COMPILE = "-I${dxvk_2}/include/dxvk";
};
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))