obs-studio-plugins: move env variable into env for structuredAttrs (#524036)

This commit is contained in:
Stefan Frijters
2026-07-07 09:05:24 +00:00
committed by GitHub
3 changed files with 6 additions and 4 deletions
@@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
"-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON"
];
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error" ];
preConfigure = ''
rm -rf external/flatbuffers
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ obs-studio ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ];
cmakeFlags = [ "-DBUILD_OUT_OF_TREE=On" ];
@@ -30,8 +30,10 @@ buildGoModule rec {
"-w"
];
CGO_CFLAGS = "-I${obs-studio}/include/obs";
CGO_LDFLAGS = "-L${obs-studio}/lib -lobs -lobs-frontend-api";
env = {
CGO_CFLAGS = "-I${obs-studio}/include/obs";
CGO_LDFLAGS = "-L${obs-studio}/lib -lobs -lobs-frontend-api";
};
buildPhase = ''
runHook preBuild