Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pkgs/applications/graphics/oculante/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ rustPlatform.buildRustPackage rec {
wrapGAppsHook3
];

checkFlagsArray = [ "--skip=tests::net" ]; # requires network access

buildInputs = [
openssl
fontconfig
Expand All @@ -62,6 +60,7 @@ rustPlatform.buildRustPackage rec {

checkFlags = [
"--skip=bench"
"--skip=tests::net" # requires network access
];

postInstall = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ in stdenv.mkDerivation rec {
'';

# https://nodejs.org/api/os.html#osarch
npmFlagsArray = [ "--arch=${if stdenv.hostPlatform.parsed.cpu.name == "i686" then "ia32"
else if stdenv.hostPlatform.parsed.cpu.name == "x86_64" then "x64"
else if stdenv.hostPlatform.parsed.cpu.name == "aarch64" then "arm64"
else stdenv.hostPlatform.parsed.cpu.name}" ];
npmFlags = [ "--arch=${if stdenv.hostPlatform.parsed.cpu.name == "i686" then "ia32"
else if stdenv.hostPlatform.parsed.cpu.name == "x86_64" then "x64"
else if stdenv.hostPlatform.parsed.cpu.name == "aarch64" then "arm64"
else stdenv.hostPlatform.parsed.cpu.name}" ];

installPhase = ''
runHook preInstall
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/video/uvccapture/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
done
'';

makeFlagsArray = [ "PREFIX=$(out)/bin/" ];
makeFlags = [ "PREFIX=$(out)/bin/" ];

preInstall = ''
mkdir -p "$out/bin"
Expand Down
16 changes: 7 additions & 9 deletions pkgs/by-name/ne/neovim-unwrapped/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,23 +149,21 @@ in {
# check that the above patching actually works
disallowedRequisites = [ stdenv.cc ] ++ lib.optional (lua != codegenLua) codegenLua;

cmakeFlagsArray = [
cmakeFlags = [
# Don't use downloaded dependencies. At the end of the configurePhase one
# can spot that cmake says this option was "not used by the project".
# That's because all dependencies were found and
# third-party/CMakeLists.txt is not read at all.
"-DUSE_BUNDLED=OFF"
]
++ lib.optional (!lua.pkgs.isLuaJIT) "-DPREFER_LUA=ON"
;
++ lib.optionals lua.pkgs.isLuaJIT [
"-DLUAC_PRG=${codegenLua}/bin/luajit -b -s %s -"
"-DLUA_GEN_PRG=${codegenLua}/bin/luajit"
"-DLUA_PRG=${neovimLuaEnvOnBuild}/bin/luajit"
];

preConfigure = lib.optionalString lua.pkgs.isLuaJIT ''
cmakeFlagsArray+=(
"-DLUAC_PRG=${codegenLua}/bin/luajit -b -s %s -"
"-DLUA_GEN_PRG=${codegenLua}/bin/luajit"
"-DLUA_PRG=${neovimLuaEnvOnBuild}/bin/luajit"
)
'' + lib.optionalString stdenv.isDarwin ''
preConfigure = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/nvim/CMakeLists.txt --replace " util" ""
'' + ''
mkdir -p $out/lib/nvim/parser
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/xm/xmoji/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
xcbutilimage
];

makeFlagsArray = [ "prefix=${placeholder "out"}" ];
makeFlags = [ "prefix=${placeholder "out"}" ];

meta = {
description = "Plain X11 emoji keyboard";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/xr/xr-hardware/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
dontBuild = true;

installTargets = "install_package";
installFlagsArray = "DESTDIR=${placeholder "out"}";
installFlags = "DESTDIR=${placeholder "out"}";

passthru.updateScript = nix-update-script { };

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/cuda-modules/nccl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ backendStdenv.mkDerivation (finalAttrs: {
patchShebangs ./src/device/generate.py
'';

makeFlagsArray =
makeFlags =
[
"PREFIX=$(out)"
"NVCC_GENCODE=${cudaFlags.gencodeString}"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/cuda-modules/saxpy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ backendStdenv.mkDerivation {
]
++ lib.optionals (cudaAtLeast "12.0") [ cuda_cccl ];

cmakeFlagsArray = [
cmakeFlags = [
(lib.cmakeBool "CMAKE_VERBOSE_MAKEFILE" true)
(lib.cmakeFeature "CMAKE_CUDA_ARCHITECTURES" flags.cmakeCudaArchitecturesString)
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/appindicator-sharp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
];

ac_cv_path_MDOC = "no";
installFlagsArray = ["GAPIXMLDIR=/tmp/gapixml"];
installFlags = ["GAPIXMLDIR=/tmp/gapixml"];

meta = {
description = "Bindings for appindicator using gobject-introspection";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/science/math/bonmin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-nqjAQ1NdNJ/T4p8YljEWRt/uy2aDwyBeAsag0TmRc5Q=";
};

__structuredAttrs = true;

nativeBuildInputs = [
doxygen
gfortran
Expand All @@ -50,7 +52,7 @@ stdenv.mkDerivation rec {
zlib
];

configureFlagsArray = lib.optionals stdenv.isDarwin [
configureFlags = lib.optionals stdenv.isDarwin [
"--with-asl-lib=-lipoptamplinterface -lamplsolver"
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ stdenv.mkDerivation rec {

passthru = { inherit (blas) isILP64; };

__structuredAttrs = true;

# upstream patch, remove with next release
patches = [ (fetchpatch {
name = "gcc-10";
Expand Down Expand Up @@ -62,7 +64,7 @@ stdenv.mkDerivation rec {

# Increase individual test timeout from 1500s to 10000s because hydra's builds
# sometimes fail due to this
checkFlagsArray = [ "ARGS=--timeout 10000" ];
checkFlags = [ "ARGS=--timeout 10000" ];

postFixup = ''
# _IMPORT_PREFIX, used to point to lib, points to dev output. Every package using the generated
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/webkit2-sharp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
'';

ac_cv_path_MONODOCER = "no";
installFlagsArray = ["GAPIXMLDIR=/tmp/gapixml"];
installFlags = ["GAPIXMLDIR=/tmp/gapixml"];

passthru = {
inherit webkitgtk;
Expand Down
5 changes: 0 additions & 5 deletions pkgs/development/php-packages/apcu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ buildPecl {

buildInputs = [ pcre2 ];
doCheck = true;
checkTarget = "test";
checkFlagsArray = [
"REPORT_EXIT_STATUS=1"
"NO_INTERACTION=1"
];
makeFlags = [ "phpincludedir=$(dev)/include" ];
outputs = [
"out"
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/php-packages/xdebug/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ buildPecl {
};

doCheck = true;
checkTarget = "test";

zendExtension = true;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/build-managers/fac/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
# fac includes a unit test called ls_files_works which assumes it's
# running in a git repo. Nix's sandbox runs cargo build outside git,
# so this test won't work.
checkFlagsArray = [ "--skip=ls_files_works" ];
checkFlags = [ "--skip=ls_files_works" ];

# fac calls git at runtime, expecting it to be in the PATH,
# so we need to patch it to call git by absolute path instead.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/rust/cargo-cache/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {

buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];

checkFlagsArray = [ "offline_tests" ];
checkFlags = [ "offline_tests" ];

meta = with lib; {
description = "Manage cargo cache (\${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/games/warmux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ stdenv.mkDerivation {
sha256 = "1hvzglsmp75xiqqb0k75qjz4jwi8kl3fhn8zfsz53hhhqmbw6wkr";
};

__structuredAttrs = true;

preConfigure = "patchShebangs autogen.sh && ./autogen.sh";
configureFlagsArray = ("CFLAGS=-include ${zlib.dev}/include/zlib.h");
configureFlags = ["CFLAGS=-include ${zlib.dev}/include/zlib.h"];

nativeBuildInputs = [
autoconf automake gettext intltool libtool pkg-config
Expand Down
2 changes: 1 addition & 1 deletion pkgs/servers/janus-gateway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
"--enable-post-processing"
];

makeFlagsArray = [
makeFlags = [
"BORINGSSL_LIBS=-L${lib.getLib boringssl}/lib"
];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/backup/monolith/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ libiconv Security SystemConfiguration ];

checkFlagsArray = [ "--skip=tests::cli" ];
checkFlags = [ "--skip=tests::cli" ];

meta = with lib; {
description = "Bundle any web page into a single HTML file";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/cd-dvd/sacd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
})
];

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

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/misc/intermodal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-7vtUMG6mxAHKnbouyTsaUf1myJssxYoqAIOjc6m86Fo=";

# include_hidden test tries to use `chflags` on darwin
checkFlagsArray = lib.optionals stdenv.isDarwin [ "--skip=subcommand::torrent::create::tests::include_hidden" ];
checkFlags = lib.optionals stdenv.isDarwin [ "--skip=subcommand::torrent::create::tests::include_hidden" ];

nativeBuildInputs = [ installShellFiles ];

Expand Down
5 changes: 1 addition & 4 deletions pkgs/tools/security/sudo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
"--with-iologdir=/var/log/sudo-io"
"--with-sendmail=${sendmailPath}"
"--enable-tmpfiles.d=no"
"--with-passprompt=[sudo] password for %p: " # intentional trailing space
] ++ lib.optionals withInsults [
"--with-insults"
"--with-all-insults"
Expand All @@ -47,10 +48,6 @@ stdenv.mkDerivation (finalAttrs: {
"--with-sssd-lib=${sssd}/lib"
];

configureFlagsArray = [
"--with-passprompt=[sudo] password for %p: " # intentional trailing space
];

postConfigure =
''
cat >> pathnames.h <<'EOF'
Expand Down