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: enable __structuredAttrs #72074

Closed
wants to merge 337 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
337 commits
Select commit Hold shift + click to select a range
3383f6b
fixup! treewide: configureFlags is a flat list
jtojnar Dec 31, 2019
5239aed
fixup! ninja: fix for structured attrs
jtojnar Dec 31, 2019
6b8babf
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Jan 21, 2020
8e85d27
audiofile: use env. with a string
globin Jan 23, 2020
36bd1a6
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Apr 1, 2020
df715eb
Revert "ruby: workaround __toString issue with toJSON"
globin Apr 1, 2020
c1854d8
treewide: fix sconsFlags handling
globin Apr 1, 2020
7d80da3
stdenv/linux: fix iconv support in libunistring
lheckemann Apr 3, 2020
cbfdbbf
perl-modules: fix building
lheckemann Apr 4, 2020
24df1f0
rubyPackages.nokogiri: fix build
lheckemann Apr 4, 2020
e5276c7
makeFontsCache: fix for structuredAttrs
lheckemann Apr 4, 2020
d8d10e5
linux: fix build with structuredAttrs
lheckemann Apr 4, 2020
7b4ac78
sudo: fix structuredAttrs build
lheckemann Apr 4, 2020
c829aab
go_1_14: fix structuredAttrs build
globin Apr 4, 2020
25fcd7b
ghc883: fix structuredAttrs build
globin Apr 4, 2020
476067a
treewide: fix structured-attrs eval errors
globin Apr 4, 2020
e256a20
Use env. for environment variables
FRidh Apr 5, 2020
742ae57
ssh validationPackage is a single value, not a list
FRidh Apr 5, 2020
9063bff
zenpower: makeFlags is a list
FRidh Apr 5, 2020
15a0499
Revert "Use env. for environment variables"
FRidh Apr 5, 2020
1b29d05
Use env. for environment variables
teto Apr 5, 2020
7bac616
treewide: fix structured-attrs build errors
globin Apr 5, 2020
ac1c294
akonadi: add CXXFLAGS to env
globin Apr 5, 2020
30d6ad3
afew: fix makeWrapperArgs handling
globin Apr 5, 2020
5bed43a
aegisub: add CXXFLAGS to env
globin Apr 5, 2020
7d6f7dc
aegisub: add FLAGS and CRYSTAL_LIBRARY_PATH to env
globin Apr 5, 2020
668174f
goocanvas: add PKG_CONFIG_* to env
globin Apr 5, 2020
e68239a
hspell: add PERL_USE_UNSAFE_INC to env
globin Apr 5, 2020
76b88d9
libcdr: add CXXFLAGS to env
globin Apr 5, 2020
942d915
wxGTK: add SEARCH_INCLUDE and SEARCH_LIB to env
globin Apr 5, 2020
417aea1
lvm2: fix build with structured attrs
globin Apr 5, 2020
bc348d0
apcupsd: fix configureFlags handling
globin Apr 5, 2020
fc0604e
stdenv: assert CXXFLAGS -> env
globin Apr 5, 2020
502513e
texlive: fix with structured attrs
globin Apr 5, 2020
86e1a96
modules-closure: fix for structuredAttrs
lheckemann Apr 4, 2020
609ef40
linux: fix build with structuredAttrs (really this time)
lheckemann Apr 4, 2020
eb26c48
stdenv: improve error message when env contains a bad type
lheckemann Apr 4, 2020
59d6f2a
nixos/etc: fix building etc with structuredAttrs
lheckemann Apr 5, 2020
ea9ad7e
make-initrd: fix for structuredAttrs
lheckemann Apr 5, 2020
db02491
libunistring: only provide libiconv-prefix on non-linux
lheckemann Apr 5, 2020
6771c1f
linux/firmware: misc structuredAttrs fixes
lheckemann Apr 5, 2020
88927d4
unifont: fix build with structuredAttrs
lheckemann Apr 5, 2020
903d5aa
libfolia: add CXXFLAGS to env
teto Apr 6, 2020
ff6b7b0
libpar2: add CXXFLAGS to env
teto Apr 6, 2020
537df49
xmoto: add CXXFLAGS to env
teto Apr 6, 2020
f1dfebe
desmume: add CXXFLAGS to env
teto Apr 6, 2020
041d756
upx: add CXXFLAGS to env
teto Apr 6, 2020
25add83
ocaml: remove unreferenced files
globin Apr 7, 2020
e82c2fc
ocaml: remove unused 4.00.1
globin Apr 7, 2020
fbfbb1d
ocaml: remove unused 4.03
globin Apr 7, 2020
5f96203
ocaml: remove unused 4.04
globin Apr 7, 2020
9040bc0
metaocaml_3_09: remove unused and broken package
globin Apr 7, 2020
c3a54ba
treewide: cleanup prefixKey logic
globin Apr 7, 2020
64b344d
fetchurl: fix for structured attrs
globin Apr 7, 2020
6860f87
treewide: fix CFLAGS for structured attrs
globin Apr 7, 2020
a08512f
qt4: fix for structured attrs
globin Apr 7, 2020
c9038c0
qt5.qtbase: fix for structured attrs
globin Apr 7, 2020
cead219
fluid: temporary sourceRoot=. fix
globin Apr 7, 2020
8b85688
taskjuggler: remove unreferenced files
globin Apr 7, 2020
35e4ad6
lprof: remove ancient, dead package
globin Apr 7, 2020
2ef8d66
qt3: remove, no refences left
globin Apr 7, 2020
c609fbe
Merge remote-tracking branch 'upstream/staging' into structured-attrs
globin Apr 7, 2020
0523429
treewide: add C{,XX}FLAGS to env attrs
globin Apr 7, 2020
3c17326
treewide: fix eval
globin Apr 8, 2020
e754ee6
kdeFrameworks.*: fix setupHooks
globin Apr 8, 2020
482ee58
fetchurl: fix mirrorsFile
globin Apr 9, 2020
7acb003
symlinkJoin: replace passAsFile
globin Apr 9, 2020
ddc0bf2
stdenv.mkDerivation: disallow LDFLAGS outside `env`
globin Apr 9, 2020
0d7c433
rxvt-unicode: fix eval
globin Apr 9, 2020
374284e
fetchurl: use read correctly
globin Apr 11, 2020
ff5baf8
treewide: structured-attrs eval fixes
globin Apr 11, 2020
5a4fb8d
stdenv: properly fix sourceRoot=.
globin Apr 11, 2020
53cab74
aspellDicts: fix buildTxtDict
globin Apr 12, 2020
5c1086f
fpc: fix build
globin Apr 12, 2020
7ca4297
httpunit: fix build
globin Apr 12, 2020
2b3e68c
monoDllFixer: fix build
globin Apr 12, 2020
2b6bc1a
gtk-sharp: fix build
globin Apr 12, 2020
c94243f
nx-libs: fix build
globin Apr 12, 2020
d251320
acd_cli: fix build
globin Apr 13, 2020
c1d2266
mplayer: fix build
globin Apr 13, 2020
db60e62
libf2c: fix build
globin Apr 13, 2020
9f60b1e
qtwebengine: fix build
globin Apr 13, 2020
e2e8e1a
perlPackages.Mozilla-LDAP: fix build
globin Apr 13, 2020
81f4dfa
anki: fix build
globin Apr 13, 2020
8f7dab9
buildPythonPackage: fix LANG handling
globin Apr 13, 2020
4f17f7c
lemon: fix build
globin Apr 13, 2020
485957e
zathura: fix plugin builds
globin Apr 13, 2020
ebab7e9
python.pkgs.cryptography: fix build
globin Apr 13, 2020
9191139
python.pkgs.paramiko: fix build
globin Apr 13, 2020
daaffb1
mariadb: fix build
globin Apr 13, 2020
c0f4710
containerd: fix build
globin Apr 14, 2020
b4e85bd
docker: fix build
globin Apr 14, 2020
245d2f3
phonon: fix build
globin Apr 14, 2020
77197d8
luarocks: fix build
globin Apr 14, 2020
c0d015e
borg: fix build
globin Apr 14, 2020
5428f06
youtube-dl: fix build
globin Apr 14, 2020
4e944c5
treewide: fix passAsFile occurences
globin Apr 14, 2020
3d8d0f5
nodePackages: fix build
globin Apr 14, 2020
ef6447d
pytest-check-hoo: fix array quoting
globin Apr 15, 2020
143f390
python.pkgs.cryptography: fix missing dep
globin Apr 15, 2020
e03fbb4
transfig: fix array quoting
globin Apr 15, 2020
a424d88
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Apr 15, 2020
2d44535
Merge remote-tracking branch 'upstream/staging' into structured-attrs
globin Apr 15, 2020
1ada23e
librsvg: fix eval
globin Apr 15, 2020
01bda6d
python.pkgs.cryptography: fix merge
globin Apr 15, 2020
8265278
dconf: format with nixpkgs-fmt
jtojnar Apr 16, 2020
e5c8f88
dconf: fix build
jtojnar Apr 16, 2020
2aadcc5
gst_all_1.gstreamer: fix build
jtojnar Apr 16, 2020
0d5a35b
php: fix eval
globin Apr 16, 2020
e67383f
libdv: fix eval
globin Apr 16, 2020
3a42179
libvpx: fix eval
globin Apr 16, 2020
fef6d50
azureus: fix build
globin Apr 17, 2020
0e61d42
ardour: fix eval
globin Apr 17, 2020
04ce999
evolution: fix build
globin Apr 17, 2020
5a91b08
evolution-data-server: fix build
globin Apr 17, 2020
3119af3
gnustep-make: fix build
globin Apr 17, 2020
6ec22bc
llvm6.compiler-rt: fix eval
globin Apr 17, 2020
f83a072
guile: fix eval
globin Apr 17, 2020
cb7feb3
qm-dsp: fix eval
globin Apr 17, 2020
1ad6dea
kinit: fix eval
globin Apr 17, 2020
b2531b3
sword: fix eval
globin Apr 17, 2020
f9cf8a5
base16-builder: fix eval
globin Apr 17, 2020
bc15f27
texlive.dvisvgm: fix build
globin Apr 17, 2020
1e21d7b
treewide: fix structured-attrs related failures
globin Apr 19, 2020
0114400
dmd: fix build
globin Apr 28, 2020
9d6f7fd
objc4-osx: fix build
globin Apr 28, 2020
879260e
waf: fix for structured-attrs
globin Apr 28, 2020
b11b4a8
ns-3: fix build
globin Apr 30, 2020
2f1ba31
python.buildPython*: fix env handling
globin Apr 30, 2020
53c7cef
python.pkgs.python-dbusmock: fix build
globin Apr 30, 2020
ca28500
bolt: fix build
globin Apr 30, 2020
26704dd
qmake: fix hook quoting
globin Apr 30, 2020
5672a1d
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Mar 1, 2021
7431bd0
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Mar 4, 2021
ba4244b
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Mar 4, 2021
05fabbb
treewide: stdenv.lib -> lib
globin Mar 5, 2021
d7ae8cb
treewide: eval fixes
globin Mar 8, 2021
ee07388
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Mar 8, 2021
567cbce
treewide: eval fixes
globin Mar 8, 2021
db58cb0
openldap: fix {make,install}Flags handling
globin Mar 11, 2021
d9af113
treewide: structured-attrs eval fixes
globin Mar 16, 2021
6c35335
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Mar 16, 2021
7989a10
treewide: fix structured-attrs related failures
globin Mar 20, 2021
1f2c2a3
uhd: fix cmake flags with structured-attrs
globin Mar 20, 2021
995e50f
crystal: fix package builds with structured-attrs
globin Mar 20, 2021
74890f4
treewide: fix package builds with structured-attrs
globin Mar 22, 2021
f40274d
treewide: fix package builds with structured-attrs
globin Apr 22, 2021
c416823
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Apr 23, 2021
2e2462a
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Apr 23, 2021
14dc264
wrapPythonPrograms: handle pythonPath correctly
globin Apr 23, 2021
2524d3c
treewide: fix structured-attrs eval failures
globin Apr 23, 2021
e62cfc9
pythonPackages.tappy: init at 3.0
SFrijters Apr 3, 2021
c447fb4
tracker: 3.0.3 → 3.1.1
jtojnar Mar 21, 2021
4135825
treewide: structured-attrs eval fixes
globin Apr 24, 2021
8d602a0
gogs: structured-attrs build fix
globin Apr 26, 2021
93978b3
gnome3.gdm: structured-attrs build fix
globin Apr 26, 2021
d0cfdf3
gnome3.mutter: structured-attrs build fix
globin Apr 26, 2021
465b4dd
haskellPackage.mkDerivation: structured-attrs build fix
globin Apr 26, 2021
982390d
spice-gtk: structured-attrs build fix
globin Apr 26, 2021
431cd92
python.pkgs.ansible-lint: structured-attrs build fix
globin Apr 26, 2021
473e5b6
python.pkgs.jaraco_classes: structured-attrs build fix
globin Apr 26, 2021
fa98abb
gomplate: structured-attrs build fix
globin Apr 26, 2021
4ef8740
agate: structured-attrs build fix
globin Apr 26, 2021
72b3c05
DisnixWebService: structured-attrs build fix
globin Apr 26, 2021
4d4f48a
gnupg1compat: structured-attrs build fix
globin Apr 26, 2021
4d27731
dosage: structured-attrs build fix
globin Apr 27, 2021
f8c1d39
birdtray: structured-attrs build fix
globin Apr 27, 2021
8a4cec7
clipcat: structured-attrs build fix
globin Apr 27, 2021
df7293e
digitalbitbox: structured-attrs build fix
globin Apr 27, 2021
3fc0b96
cloudfoundry-cli: structured-attrs build fix
globin Apr 27, 2021
52710db
commitizen: structured-attrs build fix
globin Apr 27, 2021
f474eb9
buildRustPackage: structured-attrs build fix
globin Apr 27, 2021
3c4933d
wrapGappsHook: structured-attrs build fix
globin Apr 27, 2021
aa9891a
arduino-cli: structured-attrs build fix
globin Apr 27, 2021
4fec6e0
arduino-core: structured-attrs build fix
globin Apr 27, 2021
1aab2eb
buildGoModule: structured-attrs build fix
globin Apr 27, 2021
e2c79cd
buildGoPackage: structured-attrs build fix
globin Apr 27, 2021
54a11fa
buildDhallPackage: structured-attrs build fix
globin Apr 27, 2021
42543e2
clearsilver: structured-attrs build fix
globin Apr 27, 2021
32757f6
clwrapper: structured-attrs build fix
globin Apr 27, 2021
be56e81
certbot: structured-attrs build fix
globin Apr 27, 2021
8f3165c
python.pkgs.tqdm: structured-attrs build fix
globin Apr 27, 2021
50f7f72
conftest: structured-attrs build fix
globin Apr 27, 2021
9aab708
devpi-client: structured-attrs build fix
globin Apr 27, 2021
be3edc7
clojure-lsp: structured-attrs build fix
globin Apr 27, 2021
d971efb
cryptodev: structured-attrs build fix
globin Apr 27, 2021
e0a56e1
formats.{json,toml}: structured-attrs build fix
globin Apr 27, 2021
0212e11
dictDBs.wordnet: structured-attrs build fix
globin Apr 27, 2021
56a79eb
duplicity: structured-attrs build fix
globin Apr 27, 2021
a482410
ncompress: structured-attrs build fix
globin Apr 27, 2021
ca12cb1
directx-shader-compiler: structured-attrs build fix
globin Apr 27, 2021
8e99a30
bukubrow: structured-attrs build fix
globin Apr 27, 2021
6f70eb0
clash: structured-attrs build fix
globin Apr 27, 2021
ba31f05
azureus: structured-attrs build fix
globin Apr 27, 2021
0d80dc5
chipsec: structured-attrs build fix
globin Apr 27, 2021
9cf1b3d
doas: structured-attrs build fix
globin Apr 27, 2021
ac630e8
driversi686Linux.vaapiIntel: structured-attrs build fix
globin Apr 28, 2021
e1ecc2f
dunst: structured-attrs build fix
globin Apr 28, 2021
d2d882a
dolphinEmuMaster: structured-attrs build fix
globin Apr 28, 2021
28ec447
edbrowse: structured-attrs build fix
globin Apr 28, 2021
f2564d8
elan: structured-attrs build fix
globin Apr 28, 2021
c6dfbee
eksctl: structured-attrs build fix
globin Apr 28, 2021
f51e268
electrs: structured-attrs build fix
globin Apr 28, 2021
cf58825
fetchHex: structured-attrs build fix
globin Apr 28, 2021
c12d2fb
mixRelease: structured-attrs build fix
globin Apr 28, 2021
3cd9ef0
qwt: structured-attrs build fix
globin Apr 28, 2021
4754e01
shellcheck: structured-attrs build fix
globin Apr 28, 2021
9a8da10
qwt6_qt4: structured-attrs build fix
globin Apr 28, 2021
481c8d5
facedetect: structured-attrs build fix
globin Apr 28, 2021
7e74a74
enigma: structured-attrs build fix
globin Apr 28, 2021
28b9bcd
freesweep: structured-attrs build fix
globin Apr 28, 2021
aefb18b
gamenetworkingsockets: structured-attrs build fix
globin Apr 28, 2021
3e01591
gibo: structured-attrs build fix
globin Apr 28, 2021
b3771ba
git-review: structured-attrs build fix
globin Apr 28, 2021
5d23c1c
mono: structured-attrs build fix
globin Apr 28, 2021
3f1e6e8
buildRubyGem: structured-attrs build fix
globin Apr 28, 2021
7947516
mkYarnPackage: structured-attrs build fix
globin Apr 28, 2021
909c377
grandorgue: structured-attrs build fix
globin Apr 28, 2021
bdf5192
jupyter: structured-attrs build fix
globin Apr 28, 2021
42d2c9f
uhd3_5: structured-attrs build fix
globin Apr 28, 2021
9833ad7
gitlab: structured-attrs build fix
globin Apr 28, 2021
42da006
guile-ncurses: structured-attrs build fix
globin Apr 28, 2021
9c1fff6
hunspellDicts: structured-attrs build fix
globin Apr 28, 2021
a548768
incrtcl: structured-attrs build fix
globin Apr 28, 2021
c0b788e
gwtdragdrop: structured-attrs build fix
globin Apr 28, 2021
e0cddfa
gwtwidgets: structured-attrs build fix
globin Apr 28, 2021
0c409d5
jdom: structured-attrs build fix
globin Apr 28, 2021
84e2bc1
ifcopenshell: structured-attrs build fix
globin Apr 28, 2021
57e27f8
python.pkgs.notebook: structured-attrs build fix
globin Apr 28, 2021
e4c37ed
gup: structured-attrs build fix
globin Apr 28, 2021
ce12443
hyperrogue: structured-attrs build fix
globin Apr 28, 2021
ff1efab
jool-cli: structured-attrs build fix
globin Apr 28, 2021
0d5df55
jboss_mysql_jdbc: structured-attrs build fix
globin Apr 28, 2021
add2fb5
mysql_jdbc: structured-attrs build fix
globin Apr 28, 2021
1b1546a
usbmuxd: structured-attrs build fix
globin Apr 28, 2021
d63e12c
bitwarden_rs: structured-attrs build fix
globin Apr 28, 2021
85e4faf
gorilla-bin: structured-attrs build fix
globin Apr 28, 2021
3215bb5
plan9port: structured-attrs build fix
globin Apr 28, 2021
b5a367d
ripgrep: structured-attrs build fix
globin Apr 28, 2021
15cab9e
perlPackages.TermReadLineGnu: structured-attrs build fix
globin Apr 28, 2021
0652bd2
ipe: structured-attrs build fix
globin Apr 28, 2021
c3ce3da
irods: structured-attrs build fix
globin Apr 28, 2021
89883af
innernet: structured-attrs build fix
globin Apr 28, 2021
7aa6979
indicator-application-gtk3: structured-attrs build fix
globin Apr 28, 2021
ab2b6bf
httplz: structured-attrs build fix
globin Apr 28, 2021
5b1fc03
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin Apr 30, 2021
78d7576
darwin: fix build with structured-attrs
globin Apr 30, 2021
813e2d3
imag: fix build with structured-attrs
globin Apr 30, 2021
7c3a400
jq: fix build with structured-attrs on darwin
globin May 1, 2021
4bc5fbe
Merge remote-tracking branch 'upstream/master' into structured-attrs
globin May 24, 2021
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
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions nixos/modules/system/etc/etc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ let
etc = pkgs.stdenvNoCC.mkDerivation {
name = "etc";

builder = ./make-etc.sh;
buildCommand = builtins.readFile ./make-etc.sh;

preferLocalBuild = true;
allowSubstitutes = false;

/* !!! Use toXML. */
sources = map (x: x.source) etc';
targets = map (x: x.target) etc';
modes = map (x: x.mode) etc';
Expand Down
22 changes: 6 additions & 16 deletions nixos/modules/system/etc/make-etc.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
source $stdenv/setup
mkdir -p "$out/etc"

mkdir -p $out/etc

set -f
sources_=($sources)
targets_=($targets)
modes_=($modes)
users_=($users)
groups_=($groups)
set +f

for ((i = 0; i < ${#targets_[@]}; i++)); do
source="${sources_[$i]}"
target="${targets_[$i]}"
for ((i = 0; i < ${#targets[@]}; i++)); do
source="${sources[$i]}"
target="${targets[$i]}"

if [[ "$source" =~ '*' ]]; then

# If the source name contains '*', perform globbing.
mkdir -p $out/etc/$target
mkdir -p "$out/etc/$target"
for fn in $source; do
ln -s "$fn" $out/etc/$target/
ln -s "$fn" "$out/etc/$target/"
done

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

# -Wnarrowing is enabled by default in recent GCC versions,
# causing compilation to fail.
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";

postPatch = ''
(
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/ardour/5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ in stdenv.mkDerivation rec {
"--with-backends=jack,alsa,dummy"
];

NIX_CFLAGS_COMPILE = "-I${qm-dsp}/include/qm-dsp";
env.NIX_CFLAGS_COMPILE = "-I${qm-dsp}/include/qm-dsp";

# ardour's wscript has a "tarball" target but that required the git revision
# be available. Since this is an unzipped tarball fetched from github we
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/ardour/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ stdenv.mkDerivation rec {
--prefix PATH : "${lib.makeBinPath [ harvid xjadeo ]}"
'';

LINKFLAGS = "-lpthread";
env.LINKFLAGS = "-lpthread";

meta = with lib; {
description = "Multi-track hard disk recording software";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/audio/audacious/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ mkDerivation rec {
# derivations, since they really expect to be in the same prefix.
# This is slighly tricky.
builder = builtins.toFile "builder.sh" ''
source .attrs.sh
# First build audacious.
(
source $stdenv/setup
genericBuild
)
# Then build the plugins.
(
nativeBuildInputs="$out $nativeBuildInputs" # to find audacious
nativeBuildInputs+=("''${outputs[out]}") # to find audacious
source $stdenv/setup
rm -rfv audacious-*
src=$pluginsSrc
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 @@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
cmakeFlags = lib.optional stdenv.isLinux "-DCMAKE_OSX_ARCHITECTURES=";

# audacity only looks for ffmpeg at runtime, so we need to link it in manually
NIX_LDFLAGS = toString [
env.NIX_LDFLAGS = toString [
# ffmpeg
"-lavcodec"
"-lavdevice"
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 = [ pkg-config 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 = lib.optionalString stdenv.isLinux "-lgcc_s";
env.NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";

preFixup = lib.optionalString stdenv.isLinux ''
sed 's,-ludev,-L${lib.getLib systemd}/lib -ludev,' -i $out/lib/libusb-1.0.la
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 = [ pkg-config intltool itstool libxml2 wrapGAppsHook ];
buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ecasound/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ stdenv.mkDerivation rec {

strictDeps = true;

CXXFLAGS = "-std=c++11";
configureFlags = "--enable-liblilv --with-extra-cppflags=-Dnullptr=0";
env.CXXFLAGS = "-std=c++11";
configureFlags = [ "--enable-liblilv" "--with-extra-cppflags=-Dnullptr=0" ];

postPatch = ''
sed -i -e '
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/eflite/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
./format.patch
];

CFLAGS = lib.optionalString debug " -DDEBUG=2";
env.CFLAGS = lib.optionalString debug " -DDEBUG=2";

meta = {
homepage = "http://eflite.sourceforge.net";
Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/audio/faust/faust2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ let
cd build
'';

cmakeFlags = ''
-C ../backends/all.cmake -C ../targets/all.cmake ..
'';
cmakeFlags = [ "-C ../backends/all.cmake" "-C ../targets/all.cmake .." ];

postInstall = ''
# syntax error when eval'd directly
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
4 changes: 2 additions & 2 deletions pkgs/applications/audio/ft2-clone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ stdenv.mkDerivation rec {
Cocoa
];

NIX_LDFLAGS = lib.optionalString stdenv.isDarwin [
env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin (toString [
"-framework CoreAudio"
"-framework CoreMIDI"
"-framework CoreServices"
"-framework Cocoa"
];
]);

passthru.tests = {
ft2-clone-starts = nixosTests.ft2-clone;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/grandorgue/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
buildInputs = [ pkg-config fftwFloat alsaLib zlib wavpack wxGTK31 udev ]
++ lib.optional jackaudioSupport libjack2;

cmakeFlags = lib.optional (!jackaudioSupport) [
cmakeFlags = lib.optionals (!jackaudioSupport) [
"-DRTAUDIO_USE_JACK=OFF"
"-DRTMIDI_USE_JACK=OFF"
] ++ lib.optional (!includeDemo) "-DINSTALL_DEMO=OFF";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/helm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
freetype alsaLib curl libjack2 pkg-config libGLU libGL lv2
];

CXXFLAGS = "-DHAVE_LROUND";
env.CXXFLAGS = "-DHAVE_LROUND";

patches = [
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/hivelytracker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
];

# TODO: try to exclude gtk and glib from darwin builds
NIX_CFLAGS_COMPILE = [
env.NIX_CFLAGS_COMPILE = toString [
"-I${SDL}/include/SDL"
"-I${SDL_image}/include/SDL"
"-I${SDL_ttf}/include/SDL"
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 = [ pkg-config ];
buildInputs = [ libjack2 ladspaH gtk2 alsaLib libxml2 lrdf ];
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 @@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ fftwFloat gtk2 ladspaPlugins libjack2 liblo libxml2 ]
++ (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 @@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
];

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 pkg-config ];
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 {
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ alsaLib gtk2 libjack2 libxml2 readline ];
propagatedBuildInputs = [ libuuid ];
NIX_LDFLAGS = "-lm -lpthread -luuid";
env.NIX_LDFLAGS = "-lm -lpthread -luuid";

postInstall = ''
for i in lash_control lash_panel
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/audio/littlegptracker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ stdenv.mkDerivation rec {
++ lib.optionals stdenv.isLinux [ "PLATFORM=DEB" ]
++ lib.optionals stdenv.isDarwin [ "PLATFORM=OSX" ];

NIX_CFLAGS_COMPILE = [ "-fpermissive" ] ++
lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing";
env.NIX_CFLAGS_COMPILE = "-fpermissive" +
lib.optionalString stdenv.hostPlatform.isAarch64 " -Wno-error=narrowing";

NIX_LDFLAGS = lib.optional stdenv.isDarwin "-framework Foundation";
env.NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework Foundation";

installPhase = let extension = if stdenv.isDarwin then "app" else "deb-exe";
in "install -Dm555 lgpt.${extension} $out/bin/lgpt";
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 @@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
"ETC_PATH=$(out)/etc"
];

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/mixxx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mkDerivation rec {
];

qtWrapperArgs = [
"--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
"--set" "LOCALE_ARCHIVE" "${glibcLocales}/lib/locale/locale-archive"
];

meta = with lib; {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/mp3blaster/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
libvorbis
] ++ lib.optional stdenv.isDarwin SDL;

NIX_CFLAGS_COMPILE = toString ([
env.NIX_CFLAGS_COMPILE = toString ([
"-Wno-narrowing"
] ++ lib.optionals stdenv.cc.isClang [
"-Wno-reserved-user-defined-literal"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/musescore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mkDerivation rec {
qtWrapperArgs = [
# Work around crash on update from 3.4.2 to 3.5.0
# https://bugreports.qt.io/browse/QTBUG-85967
"--set QML_DISABLE_DISK_CACHE 1"
"--set" "QML_DISABLE_DISK_CACHE" "1"
];

nativeBuildInputs = [ cmake pkg-config ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/oxefmsynth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ in stdenv.mkDerivation rec {
sha256 = "1rk71ls33a38wx8i22plsi7d89cqqxrfxknq5i4f9igsw1ipm4gn";
};

NIX_CFLAGS_COMPILE = [ "-Wno-error=narrowing" ];
env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";

buildFlags = [ "VSTSDK_PATH=${vst-sdk}/VST2_SDK" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/pianobar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ stdenv.mkDerivation rec {

makeFlags = [ "PREFIX=$(out)" ];

CC = "gcc";
CFLAGS = "-std=c99";
env.CC = "gcc";
env.CFLAGS = "-std=c99";

meta = with lib; {
description = "A console front-end for Pandora.com";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/audio/picoloop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation rec {

makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ];

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

hardeningDisable = [ "format" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/pragha/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ mkDerivation rec {
# ++ lib.optional withRygel rygel
;

CFLAGS = [ "-DHAVE_PARANOIA_NEW_INCLUDES" ];
env.CFLAGS = "-DHAVE_PARANOIA_NEW_INCLUDES";

NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/include/gstreamer-1.0";
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/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/sayonara/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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/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
Loading