From 56cee3b77f232f301cb98f2ab54db18cecbdb497 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Fri, 30 Jan 2026 23:01:55 +0100 Subject: [PATCH] cwiid: move NIX_CFLAGS_COMPILE into env for structuredAttrs --- pkgs/by-name/cw/cwiid/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/cw/cwiid/package.nix b/pkgs/by-name/cw/cwiid/package.nix index eccda1e63962..2d7391811e6e 100644 --- a/pkgs/by-name/cw/cwiid/package.nix +++ b/pkgs/by-name/cw/cwiid/package.nix @@ -45,8 +45,10 @@ stdenv.mkDerivation { flex ]; - NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; - NIX_LDFLAGS = "-lbluetooth"; + env = { + NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; + NIX_LDFLAGS = "-lbluetooth"; + }; postInstall = '' # Some programs (for example, cabal-install) have problems with the double 0