Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdenv.mkDerivation: add support for env attrset #76732

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
610c73c
stdenv.mkDerivation: add support for env attrset
jtojnar Dec 31, 2019
7473d6f
stdenv: introduce env dict exporting vars
globin Nov 5, 2019
f7f57f8
treewide: use env.* for vars to be exported in ENV
globin Nov 5, 2019
e20f334
treewide: Use `env` for many for environment variables
Ericson2314 Nov 9, 2019
870efbe
perlPackages: Use `env` for many for `NIX_*` env vars
Ericson2314 Nov 9, 2019
e38b07f
wireguard: fix eval
globin Nov 9, 2019
1021d37
openjdk{8,11,12}: fix eval
Ma27 Nov 9, 2019
dc1d8ee
poly2tri-c: fix eval
Ma27 Nov 9, 2019
69f2e67
zfs: fix eval
Ma27 Nov 9, 2019
e06f3ba
darwin.system_cmds: fix eval
Ma27 Nov 9, 2019
b55c26f
weechat: fix eval
Ma27 Nov 9, 2019
4ef2842
treewide: *inputs are lists
globin Nov 9, 2019
ded8fa2
treewide: use flat lists for *Inputs, fix env usage
Ma27 Nov 10, 2019
00f0b2e
treewide: fix types for mkDerivation params
globin Nov 10, 2019
145ec3c
treewide: mv NIX_LDFLAGS to `env.`
Ma27 Nov 10, 2019
d2ccf58
xorg.imake: fix build
globin Nov 11, 2019
1e7bcd5
libfaketime: fix build
globin Nov 11, 2019
2bb8977
rustc: fix build
Ma27 Nov 13, 2019
b229ae6
go: fix build
Ma27 Nov 13, 2019
e83ca93
cargo: fix build
Ma27 Nov 14, 2019
5526bf9
treewide: configureFlags is a flat list
globin Nov 20, 2019
ac89292
treewide: configureFlags is a flat list
globin Nov 20, 2019
07b1e6a
treewide: structured-attrs fixes
globin Nov 24, 2019
ea3e015
fixup! stdenv.mkDerivation: add support for env attrset
jtojnar Dec 31, 2019
7c47367
fixup! stdenv: introduce env dict exporting vars
jtojnar Dec 31, 2019
7ed6a44
fixup! stdenv.mkDerivation: add support for env attrset
jtojnar Dec 31, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion lib/tests/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgs.runCommandNoCC "nixpkgs-lib-tests" {
buildInputs = [ pkgs.nix (import ./check-eval.nix) ];
NIX_PATH="nixpkgs=${pkgs.path}";
env.NIX_PATH="nixpkgs=${pkgs.path}";
} ''
datadir="${pkgs.nix}/share"
export TEST_ROOT=$(pwd)/test-tmp
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/audacity/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
];

# audacity only looks for lame and ffmpeg at runtime, so we need to link them in manually
NIX_LDFLAGS = toString [
env.NIX_LDFLAGS = toString [
# LAME
"-lmp3lame"
# ffmpeg
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/audio-recorder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
};

# https://bugs.launchpad.net/audio-recorder/+bug/1784622
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";

nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/axoloti/libusb1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
})
];

NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
env.NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";

preFixup = stdenv.lib.optionalString stdenv.isLinux ''
sed 's,-ludev,-L${systemd.lib}/lib -ludev,' -i $out/lib/libusb-1.0.la
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/bs1770gain/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stdenv.mkDerivation rec {

buildInputs = [ ffmpeg sox ];

NIX_CFLAGS_COMPILE = "-Wno-error";
env.NIX_CFLAGS_COMPILE = "-Wno-error";

meta = with stdenv.lib; {
description = "A audio/video loudness scanner implementing ITU-R BS.1770";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/chuck/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ stdenv.mkDerivation rec {

patches = [ ./darwin-limits.patch ];

NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-missing-sysroot";
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework MultitouchSupport";
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-missing-sysroot";
env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework MultitouchSupport";

postPatch = ''
substituteInPlace src/core/makefile.x/makefile.osx \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/easytag/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw";
};

NIX_LDFLAGS = "-lid3tag -lz";
env.NIX_LDFLAGS = "-lid3tag -lz";

nativeBuildInputs = [ pkgconfig intltool itstool libxml2 wrapGAppsHook ];
buildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/freewheeling/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
configureFlags = oldAttrs.configureFlags ++ [ "--enable-openssl-compatibility" ];
}))
];
NIX_CFLAGS_COMPILE = toString
env.NIX_CFLAGS_COMPILE = toString
(makeSDLFlags [ SDL SDL_ttf SDL_gfx ] ++ [ "-I${libxml2.dev}/include/libxml2" ]);

hardeningDisable = [ "format" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/jack-rack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libjack2 ladspaH gtk2 alsaLib libxml2 librdf ];
NIX_LDFLAGS = "-ldl -lm -lpthread";
env.NIX_LDFLAGS = "-ldl -lm -lpthread";

meta = {
description = ''An effects "rack" for the JACK low latency audio API'';
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/jamin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation {
buildInputs = [ fftwFloat gtk2 ladspaPlugins libjack2 liblo libxml2 makeWrapper ]
++ (with perlPackages; [ perl XMLParser ]);

NIX_LDFLAGS = "-ldl";
env.NIX_LDFLAGS = "-ldl";

postInstall = ''
wrapProgram $out/bin/jamin --set LADSPA_PATH ${ladspaPlugins}/lib/ladspa
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/kid3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
qtbase qttools qtmultimedia qtquickcontrols ];

cmakeFlags = [ "-DWITH_APPS=Qt;CLI" ];
NIX_LDFLAGS = "-lm -lpthread";
env.NIX_LDFLAGS = "-lm -lpthread";

preConfigure = ''
export DOCBOOKDIR="${docbook_xsl}/xml/xsl/docbook/"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/klick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ sconsPackages.scons_3_0_1 pkgconfig ];
buildInputs = [ libsamplerate libsndfile liblo libjack2 boost ];
prefixKey = "PREFIX=";
NIX_CFLAGS_COMPILE = "-fpermissive";
env.NIX_CFLAGS_COMPILE = "-fpermissive";

meta = {
homepage = http://das.nasophon.de/klick/;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/lash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
buildInputs = [ alsaLib gtk2 libjack2 libxml2 makeWrapper
pkgconfig readline ];
propagatedBuildInputs = [ libuuid ];
NIX_LDFLAGS = "-lm -lpthread -luuid";
env.NIX_LDFLAGS = "-lm -lpthread -luuid";

postInstall = ''
for i in lash_control lash_panel
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/lsp-plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
"PREFIX=${placeholder ''out''}"
];

NIX_CFLAGS_COMPILE = "-DLSP_NO_EXPERIMENTAL";
env.NIX_CFLAGS_COMPILE = "-DLSP_NO_EXPERIMENTAL";

doCheck = true;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/pianobooster/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation {
preConfigure = "cd src";

buildInputs = [ alsaLib cmake makeWrapper libGLU libGL qt4 ];
NIX_LDFLAGS = "-lGL -lpthread";
env.NIX_LDFLAGS = "-lGL -lpthread";

postInstall = ''
wrapProgram $out/bin/pianobooster \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/sayonara/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mkDerivation rec {
];

# gstreamer cannot otherwise be found
NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";
env.NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0";

postInstall = ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/sound-juicer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ in stdenv.mkDerivation rec{
gst_all_1.gst-libav
];

NIX_CFLAGS_COMPILE="-Wno-error=format-nonliteral";
env.NIX_CFLAGS_COMPILE="-Wno-error=format-nonliteral";

passthru = {
updateScript = gnome3.updateScript {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/soundscape-renderer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stdenv.mkDerivation {
# Without it doesn't find all of the boost libraries.
BOOST_LIB_DIR="${boost}/lib";
# uses the deprecated get_generic_category() in boost_system
NIX_CFLAGS_COMPILE="-DBOOST_SYSTEM_ENABLE_DEPRECATED=1";
env.NIX_CFLAGS_COMPILE="-DBOOST_SYSTEM_ENABLE_DEPRECATED=1";

LC_ALL = "en_US.UTF-8";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/squishyball/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stdenv.mkDerivation rec {

buildInputs = [ flac libao libvorbis ncurses opusfile ];

NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS";
env.NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS";

patches = [ ./gnu-screen.patch ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/svox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ stdenv.mkDerivation {
cp lang/*.bin $out/share/pico/lang
'';

NIX_CFLAGS_COMPILE = "-include stdint.h";
env.NIX_CFLAGS_COMPILE = "-include stdint.h";

meta = with stdenv.lib; {
description = "Text-to-speech engine";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/timemachine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ stdenv.mkDerivation rec {

preConfigure = "./autogen.sh";

NIX_LDFLAGS = "-lm";
env.NIX_LDFLAGS = "-lm";

meta = {
description = "JACK audio recorder";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/blockchains/dcrd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildGoPackage rec {
buildInputs = [ go git dep cacert ];

GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
env.NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";

src = fetchgit {
inherit rev;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/blockchains/dcrwallet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildGoPackage rec {
buildInputs = [ go git dep cacert ];

GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
env.NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";

src = fetchgit {
inherit rev;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/display-managers/lightdm/gtk-greeter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
configureFlagsArray+=( --enable-at-spi-command="${at-spi2-core}/libexec/at-spi-bus-launcher --launch-immediately" )
'';

NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";

installFlags = [
"localstatedir=\${TMPDIR}"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/emacs-modes/melpa-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../ -A emacsPac

irony = super.irony.overrideAttrs (old: {
cmakeFlags = old.cmakeFlags or [] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ];
NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR";
env.NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR";
preConfigure = ''
cd server
'';
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/gnome-builder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
patchShebangs build-aux/meson/post_install.py
'';

NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";

mesonFlags = [
"-Dpython_libprefix=${python3.libPrefix}"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/gnome-latex/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ in stdenv.mkDerivation {
sha256 = "1jdca9yhm7mm1aijd1a5amphgn15142kngky3id2am379ixrq1hg";
};

NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
configureFlags = ["--disable-dconf-migration"];

nativeBuildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/nedit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
# the linux config works fine on darwin too!
buildFlags = stdenv.lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux";

NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
env.NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";

installPhase = ''
mkdir -p $out/bin
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/texmacs/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stdenv.mkDerivation {

GUILE_CPPFLAGS="-D_THREAD_SAFE -I${guile_1_8.dev}/include -I${guile_1_8.dev}/include/guile ";

NIX_LDFLAGS="${zlib}/lib/libz.dylib";
env.NIX_LDFLAGS="${zlib}/lib/libz.dylib";

buildPhase = ''
substituteInPlace Makefile \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/texmacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ stdenv.mkDerivation {
git
python3
];
NIX_LDFLAGS = "-lz";
env.NIX_LDFLAGS = "-lz";

postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
(if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/editors/texmaker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mkDerivation rec {

buildInputs = [ qtbase qtscript poppler zlib ];
nativeBuildInputs = [ pkgconfig poppler qmake ];
NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler";
env.NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler";

qmakeFlags = [
"DESKTOPDIR=${placeholder "out"}/share/applications"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/gis/grass/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
done
'';

NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";
env.NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";

postInstall = ''
wrapProgram $out/bin/grass76 \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/ahoviewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
gst_all_1.gst-plugins-base
] ++ stdenv.lib.optional useUnrar unrar;

NIX_LDFLAGS = "-lpthread";
env.NIX_LDFLAGS = "-lpthread";

postPatch = ''patchShebangs version.sh'';

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/freepv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation {
--replace png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8
'';

NIX_CFLAGS_COMPILE = "-fpermissive -Wno-narrowing";
env.NIX_CFLAGS_COMPILE = "-fpermissive -Wno-narrowing";

meta = {
description = "Open source panorama viewer using GL";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/gimp/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ stdenv.lib.makeScope pkgs.newScope (self: with self; {
url = https://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/gimp-gap-2.6.0.tar.bz2;
sha256 = "1jic7ixcmsn4kx2cn32nc5087rk6g8xsrz022xy11yfmgvhzb0ql";
};
NIX_LDFLAGS = "-lm";
env.NIX_LDFLAGS = "-lm";
patchPhase = ''
sed -e 's,^\(GIMP_PLUGIN_DIR=\).*,\1'"$out/${gimp.name}-plugins", \
-e 's,^\(GIMP_DATA_DIR=\).*,\1'"$out/share/${gimp.name}", -i configure
Expand Down Expand Up @@ -141,7 +141,7 @@ stdenv.lib.makeScope pkgs.newScope (self: with self; {
Filters/Enhance/Wavelet sharpen
*/
name = "wavelet-sharpen-0.1.2";
NIX_LDFLAGS = "-lm";
env.NIX_LDFLAGS = "-lm";
src = fetchurl {
url = http://registry.gimp.org/files/wavelet-sharpen-0.1.2.tar.gz;
sha256 = "0vql1k67i21g5ivaa1jh56rg427m0icrkpryrhg75nscpirfxxqw";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/gnuclad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "0ka2kscpjff7gflsargv3r9fdaxhkf3nym9mfaln3pnq6q7fwdki";
};

NIX_CFLAGS_COMPILE = "-Wno-error=catch-value";
env.NIX_CFLAGS_COMPILE = "-Wno-error=catch-value";

nativeBuildInputs = [ pkgconfig ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/goxel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
buildInputs = [ glfw3 gtk3 libpng12 ];
NIX_LDFLAGS = "-lpthread";
env.NIX_LDFLAGS = "-lpthread";

buildPhase = ''
make release
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/gqview/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stdenv.mkDerivation {

hardeningDisable = [ "format" ];

NIX_LDFLAGS = "-lm";
env.NIX_LDFLAGS = "-lm";

meta = with stdenv.lib; {
description = "A fast image viewer";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/hugin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";

postInstall = ''
for p in $out/bin/*; do
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/imgcat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
sha256 = "0frz40rjwi73nx2dlqvmnn56zwr29bmnngfb11hhwr7v58yfajdi";
};

NIX_CFLAGS_COMPILE = "-Wno-error";
env.NIX_CFLAGS_COMPILE = "-Wno-error";

meta = with stdenv.lib; {
description = "It's like cat, but for images";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/k3d/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stdenv.mkDerivation rec {

#doCheck = false;

NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
env.NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";

meta = with stdenv.lib; {
description = "A 3D editor with support for procedural editing";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/krita/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mkDerivation rec {
python3Packages.pyqt5
] ++ lib.optional (stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64) vc;

NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];
env.NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ];

cmakeFlags = [
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/graphics/luminance-hdr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "1izmgjjp8mgyxv57sjjr05z7g7059ykb5wchlcn4wrnnb6aslnvn";
};

NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";

buildInputs = [
qtbase qtdeclarative qttools qtwebengine eigen
Expand Down
Loading