mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
treewide: *Flags convert to list from str
*Flags implies a list slightly relevant: > stdenv: start deprecating non-list configureFlags https://github.com/NixOS/nixpkgs/pull/173172 the makeInstalledTests function in `nixos/tests/installed-tests/default.nix` isn't available outside of nixpkgs so it's not a breaking change
This commit is contained in:
parent
8d32772702
commit
f4ea1208ec
@ -27,7 +27,7 @@ let
|
|||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
chronyFlags = "-n -m -u chrony -f ${configFile} ${toString cfg.extraFlags}";
|
chronyFlags = [ "-n" "-m" "-u" "chrony" "-f" "${configFile}" ] ++ cfg.extraFlags;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
@ -166,7 +166,7 @@ in
|
|||||||
unitConfig.ConditionCapability = "CAP_SYS_TIME";
|
unitConfig.ConditionCapability = "CAP_SYS_TIME";
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
{ Type = "simple";
|
{ Type = "simple";
|
||||||
ExecStart = "${chronyPkg}/bin/chronyd ${chronyFlags}";
|
ExecStart = "${chronyPkg}/bin/chronyd ${builtins.toString chronyFlags}";
|
||||||
|
|
||||||
ProtectHome = "yes";
|
ProtectHome = "yes";
|
||||||
ProtectSystem = "full";
|
ProtectSystem = "full";
|
||||||
|
@ -25,7 +25,7 @@ let
|
|||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ntpFlags = "-c ${configFile} -u ntp:ntp ${toString cfg.extraFlags}";
|
ntpFlags = [ "-c" "${configFile}" "-u" "ntp:ntp" ] ++ cfg.extraFlags;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "@${ntp}/bin/ntpd ntpd -g ${ntpFlags}";
|
ExecStart = "@${ntp}/bin/ntpd ntpd -g ${builtins.toString ntpFlags}";
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -28,7 +28,7 @@ let
|
|||||||
, withX11 ? false
|
, withX11 ? false
|
||||||
|
|
||||||
# Extra flags to pass to gnome-desktop-testing-runner.
|
# Extra flags to pass to gnome-desktop-testing-runner.
|
||||||
, testRunnerFlags ? ""
|
, testRunnerFlags ? []
|
||||||
|
|
||||||
# Extra attributes to pass to makeTest.
|
# Extra attributes to pass to makeTest.
|
||||||
# They will be recursively merged into the attrset created by this function.
|
# They will be recursively merged into the attrset created by this function.
|
||||||
@ -67,7 +67,7 @@ let
|
|||||||
'' +
|
'' +
|
||||||
''
|
''
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"gnome-desktop-testing-runner ${testRunnerFlags} -d '${tested.installedTests}/share'"
|
"gnome-desktop-testing-runner ${escapeShellArgs testRunnerFlags} -d '${tested.installedTests}/share'"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -11,5 +11,5 @@ makeInstalledTest {
|
|||||||
virtualisation.diskSize = 2048;
|
virtualisation.diskSize = 2048;
|
||||||
};
|
};
|
||||||
|
|
||||||
testRunnerFlags = "--timeout 3600";
|
testRunnerFlags = [ "--timeout" "3600" ];
|
||||||
}
|
}
|
||||||
|
@ -13,5 +13,5 @@ makeInstalledTest {
|
|||||||
virtualisation.diskSize = 3072;
|
virtualisation.diskSize = 3072;
|
||||||
};
|
};
|
||||||
|
|
||||||
testRunnerFlags = "--timeout 3600";
|
testRunnerFlags = [ "--timeout" "3600" ];
|
||||||
}
|
}
|
||||||
|
@ -9,5 +9,5 @@ makeInstalledTest {
|
|||||||
virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096;
|
virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096;
|
||||||
};
|
};
|
||||||
|
|
||||||
testRunnerFlags = "--timeout 1800";
|
testRunnerFlags = [ "--timeout" "1800" ];
|
||||||
}
|
}
|
||||||
|
@ -54,15 +54,15 @@ import ../make-test-python.nix ({ pkgs, lib, ... }:
|
|||||||
role = "server";
|
role = "server";
|
||||||
package = pkgs.k3s;
|
package = pkgs.k3s;
|
||||||
clusterInit = true;
|
clusterInit = true;
|
||||||
extraFlags = ''
|
extraFlags = builtins.toString [
|
||||||
--disable coredns \
|
"--disable" "coredns"
|
||||||
--disable local-storage \
|
"--disable" "local-storage"
|
||||||
--disable metrics-server \
|
"--disable" "metrics-server"
|
||||||
--disable servicelb \
|
"--disable" "servicelb"
|
||||||
--disable traefik \
|
"--disable" "traefik"
|
||||||
--node-ip 192.168.1.1 \
|
"--node-ip" "192.168.1.1"
|
||||||
--pause-image test.local/pause:local
|
"--pause-image" "test.local/pause:local"
|
||||||
'';
|
];
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 2379 2380 6443 ];
|
networking.firewall.allowedTCPPorts = [ 2379 2380 6443 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 8472 ];
|
networking.firewall.allowedUDPPorts = [ 8472 ];
|
||||||
@ -84,15 +84,15 @@ import ../make-test-python.nix ({ pkgs, lib, ... }:
|
|||||||
enable = true;
|
enable = true;
|
||||||
serverAddr = "https://192.168.1.1:6443";
|
serverAddr = "https://192.168.1.1:6443";
|
||||||
clusterInit = false;
|
clusterInit = false;
|
||||||
extraFlags = ''
|
extraFlags = builtins.toString [
|
||||||
--disable coredns \
|
"--disable" "coredns"
|
||||||
--disable local-storage \
|
"--disable" "local-storage"
|
||||||
--disable metrics-server \
|
"--disable" "metrics-server"
|
||||||
--disable servicelb \
|
"--disable" "servicelb"
|
||||||
--disable traefik \
|
"--disable" "traefik"
|
||||||
--node-ip 192.168.1.3 \
|
"--node-ip" "192.168.1.3"
|
||||||
--pause-image test.local/pause:local
|
"--pause-image" "test.local/pause:local"
|
||||||
'';
|
];
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 2379 2380 6443 ];
|
networking.firewall.allowedTCPPorts = [ 2379 2380 6443 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 8472 ];
|
networking.firewall.allowedUDPPorts = [ 8472 ];
|
||||||
@ -112,7 +112,10 @@ import ../make-test-python.nix ({ pkgs, lib, ... }:
|
|||||||
enable = true;
|
enable = true;
|
||||||
role = "agent";
|
role = "agent";
|
||||||
serverAddr = "https://192.168.1.3:6443";
|
serverAddr = "https://192.168.1.3:6443";
|
||||||
extraFlags = "--pause-image test.local/pause:local --node-ip 192.168.1.2";
|
extraFlags = lib.toString [
|
||||||
|
"--pause-image" "test.local/pause:local"
|
||||||
|
"--node-ip" "192.168.1.2"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ 6443 ];
|
networking.firewall.allowedTCPPorts = [ 6443 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 8472 ];
|
networking.firewall.allowedUDPPorts = [ 8472 ];
|
||||||
|
@ -40,15 +40,14 @@ import ../make-test-python.nix ({ pkgs, lib, ... }:
|
|||||||
services.k3s.role = "server";
|
services.k3s.role = "server";
|
||||||
services.k3s.package = pkgs.k3s;
|
services.k3s.package = pkgs.k3s;
|
||||||
# Slightly reduce resource usage
|
# Slightly reduce resource usage
|
||||||
services.k3s.extraFlags = ''
|
services.k3s.extraFlags = builtins.toString [
|
||||||
--disable coredns \
|
"--disable" "coredns"
|
||||||
--disable local-storage \
|
"--disable" "local-storage"
|
||||||
--disable metrics-server \
|
"--disable" "metrics-server"
|
||||||
--disable servicelb \
|
"--disable" "servicelb"
|
||||||
--disable traefik \
|
"--disable" "traefik"
|
||||||
--pause-image \
|
"--pause-image" "test.local/pause:local"
|
||||||
test.local/pause:local
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
noprivs = {
|
noprivs = {
|
||||||
|
@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
# Exclude some tests that don't work in the sandbox
|
# Exclude some tests that don't work in the sandbox
|
||||||
# - Nat test requires network access
|
# - Nat test requires network access
|
||||||
checkFlags = "--skip configuration::tests::should_resolve_external_nat_hosts";
|
checkFlags = [ "--skip" "configuration::tests::should_resolve_external_nat_hosts" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = stdenv.isDarwin;
|
broken = stdenv.isDarwin;
|
||||||
|
@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
|
|||||||
]
|
]
|
||||||
++ lib.optional withLua lua;
|
++ lib.optional withLua lua;
|
||||||
|
|
||||||
buildFlags = "translations";
|
buildFlags = [ "translations" ];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
|
|||||||
sha256 = "0km24rgll0s4ji6iz8lvy5ra76ds162s95y33w5px6697cwqkp9j";
|
sha256 = "0km24rgll0s4ji6iz8lvy5ra76ds162s95y33w5px6697cwqkp9j";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildFlags = "unix";
|
buildFlags = [ "unix" ];
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
pushd c3270 ; ./configure ; popd
|
pushd c3270 ; ./configure ; popd
|
||||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper autoreconfHook asciidoc xmlto docbook_xsl docbook_xml_dtd_45 findXMLCatalogs pkg-config ];
|
nativeBuildInputs = [ makeWrapper autoreconfHook asciidoc xmlto docbook_xsl docbook_xml_dtd_45 findXMLCatalogs pkg-config ];
|
||||||
|
|
||||||
autoreconfFlags = "-I tools -v";
|
autoreconfFlags = [ "-I" "tools" "-v" ];
|
||||||
|
|
||||||
buildInputs = [ ncurses readline git ]
|
buildInputs = [ ncurses readline git ]
|
||||||
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
|
@ -37,7 +37,7 @@ let
|
|||||||
railties = x.railties // {
|
railties = x.railties // {
|
||||||
dontBuild = false;
|
dontBuild = false;
|
||||||
patches = [ ./railties-remove-yarn-install-enhancement.patch ];
|
patches = [ ./railties-remove-yarn-install-enhancement.patch ];
|
||||||
patchFlags = "-p2";
|
patchFlags = [ "-p2" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
groups = [
|
groups = [
|
||||||
|
@ -15,7 +15,7 @@ rec {
|
|||||||
} // args);
|
} // args);
|
||||||
|
|
||||||
mvnBuild = args: import ./maven-build.nix (
|
mvnBuild = args: import ./maven-build.nix (
|
||||||
{ inherit stdenv;
|
{ inherit lib stdenv;
|
||||||
} // args);
|
} // args);
|
||||||
|
|
||||||
nixBuild = args: import ./nix-build.nix (
|
nixBuild = args: import ./nix-build.nix (
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, name
|
, name
|
||||||
, src
|
, src
|
||||||
, doTest ? true
|
, doTest ? true
|
||||||
@ -12,7 +13,11 @@
|
|||||||
} @ args :
|
} @ args :
|
||||||
|
|
||||||
let
|
let
|
||||||
mvnFlags = "-Dmaven.repo.local=$M2_REPO ${if doTest then "" else "-Dmaven.test.skip.exec=true"} ${extraMvnFlags}";
|
mvnFlags = lib.escapeShellArgs [
|
||||||
|
"-Dmaven.repo.local=$M2_REPO"
|
||||||
|
(lib.optionalString (!doTest) "-Dmaven.test.skip.exec=true")
|
||||||
|
"${extraMvnFlags}"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ( {
|
stdenv.mkDerivation ( {
|
||||||
|
@ -19,7 +19,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ coreutils smlnj ];
|
buildInputs = [ coreutils smlnj ];
|
||||||
|
|
||||||
autoreconfFlags = "-Iconfig -vfi";
|
autoreconfFlags = [ "-Iconfig" "-vfi" ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
@ -10,7 +10,7 @@ with lib; mkCoqDerivation rec {
|
|||||||
release."0.3.1".sha256 = "sha256-DyGxO2tqmYZZluXN6Oy5Tw6fuLMyuyxonj8CCToWKkk=";
|
release."0.3.1".sha256 = "sha256-DyGxO2tqmYZZluXN6Oy5Tw6fuLMyuyxonj8CCToWKkk=";
|
||||||
release."0.3.0".sha256 = "1ffr21dd6hy19gxnvcd4if2450iksvglvkd6q5713fajd72hmc0z";
|
release."0.3.0".sha256 = "1ffr21dd6hy19gxnvcd4if2450iksvglvkd6q5713fajd72hmc0z";
|
||||||
releaseRev = v: "v${v}";
|
releaseRev = v: "v${v}";
|
||||||
buildFlags = "NO_TEST=1";
|
buildFlags = [ "NO_TEST=1" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Library to create Coq record update functions";
|
description = "Library to create Coq record update functions";
|
||||||
maintainers = with maintainers; [ ineol ];
|
maintainers = with maintainers; [ ineol ];
|
||||||
|
@ -77,7 +77,7 @@ in stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = "mkdir -p $HOME";
|
preBuild = "mkdir -p $HOME";
|
||||||
makeFlags = "LISP=${sbcl}/bin/sbcl ACL2_MAKE_LOG=NONE";
|
makeFlags = [ "LISP=${sbcl}/bin/sbcl" "ACL2_MAKE_LOG=NONE" ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "mini-proveall";
|
checkTarget = "mini-proveall";
|
||||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ bintools-unwrapped unzip ];
|
nativeBuildInputs = [ bintools-unwrapped unzip ];
|
||||||
|
|
||||||
# slashes are significant because upstream uses o/$(MODE)/foo.o
|
# slashes are significant because upstream uses o/$(MODE)/foo.o
|
||||||
buildFlags = "o//third_party/python";
|
buildFlags = [ "o//third_party/python" ];
|
||||||
checkTarget = "o//third_party/python/test";
|
checkTarget = "o//third_party/python/test";
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoHash = "sha256-T85kiPG80oZ4mwpb8Ag40wDHKx2Aens+gM7NGXan5lM=";
|
cargoHash = "sha256-T85kiPG80oZ4mwpb8Ag40wDHKx2Aens+gM7NGXan5lM=";
|
||||||
|
|
||||||
# freeze the stdlib into the rustpython binary
|
# freeze the stdlib into the rustpython binary
|
||||||
cargoBuildFlags = "--features=freeze-stdlib";
|
cargoBuildFlags = [ "--features=freeze-stdlib" ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
buildInputs = lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "dist" ];
|
outputs = [ "out" "dist" ];
|
||||||
|
|
||||||
# slashes are significant because upstream uses o/$(MODE)/foo.o
|
# slashes are significant because upstream uses o/$(MODE)/foo.o
|
||||||
buildFlags = "o/cosmopolitan.h o//cosmopolitan.a o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds";
|
buildFlags = [ "o/cosmopolitan.h" "o//cosmopolitan.a" "o//libc/crt/crt.o" "o//ape/ape.o" "o//ape/ape.lds" ];
|
||||||
checkTarget = "o//test";
|
checkTarget = "o//test";
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
patchShebangs tests
|
patchShebangs tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
autoreconfFlags = "-vfi";
|
autoreconfFlags = [ "-vfi" ];
|
||||||
|
|
||||||
configureFlags = [ "--with-ui" "--with-readline" ];
|
configureFlags = [ "--with-ui" "--with-readline" ];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./find-shell-lib.patch ];
|
patches = [ ./find-shell-lib.patch ];
|
||||||
|
|
||||||
patchFlags = "-p0";
|
patchFlags = [ "-p0" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace eatmydata.in \
|
substituteInPlace eatmydata.in \
|
||||||
|
@ -16,7 +16,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
./add-Cargo.lock.patch
|
./add-Cargo.lock.patch
|
||||||
];
|
];
|
||||||
cargoSha256 = "sha256-1tW5TOap5MstxTXAFij3IB8TIpI+FryEX9TXlVXjRl4=";
|
cargoSha256 = "sha256-1tW5TOap5MstxTXAFij3IB8TIpI+FryEX9TXlVXjRl4=";
|
||||||
cargoBuildFlags = "-p rustc-demangle-capi";
|
cargoBuildFlags = [ "-p" "rustc-demangle-capi" ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
cp target/${rust.toRustTargetSpec stdenv.hostPlatform}/release/librustc_demangle.so $out/lib
|
cp target/${rust.toRustTargetSpec stdenv.hostPlatform}/release/librustc_demangle.so $out/lib
|
||||||
|
@ -423,7 +423,7 @@ final: prev: {
|
|||||||
|
|
||||||
pulp = prev.pulp.override {
|
pulp = prev.pulp.override {
|
||||||
# tries to install purescript
|
# tries to install purescript
|
||||||
npmFlags = "--ignore-scripts";
|
npmFlags = builtins.toString [ "--ignore-scripts" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-jBFEkLN2fbC3LxTu7C0iuhvNg64duuckBHWZoBxrV/U=";
|
sha256 = "sha256-jBFEkLN2fbC3LxTu7C0iuhvNg64duuckBHWZoBxrV/U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
autoreconfFlags = "-I .";
|
autoreconfFlags = [ "-I" "." ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoreconfHook
|
autoreconfHook
|
||||||
|
@ -38,7 +38,7 @@ stdenv.mkDerivation {
|
|||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
preInstall = "mkdir -p $OCAMLFIND_DESTDIR";
|
preInstall = "mkdir -p $OCAMLFIND_DESTDIR";
|
||||||
installFlags = "BINDIR=$(out)/bin";
|
installFlags = [ "BINDIR=$(out)/bin" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library for CUDF format";
|
description = "A library for CUDF format";
|
||||||
|
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
|||||||
matplotlib
|
matplotlib
|
||||||
];
|
];
|
||||||
|
|
||||||
setupPyBuildFlags = "-I${openems}/include -L${openems}/lib -R${openems}/lib";
|
setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python interface to CSXCAD";
|
description = "Python interface to CSXCAD";
|
||||||
|
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
|||||||
h5py
|
h5py
|
||||||
];
|
];
|
||||||
|
|
||||||
setupPyBuildFlags = "-I${openems}/include -L${openems}/lib -R${openems}/lib";
|
setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ];
|
||||||
pythonImportsCheck = [ "openEMS" ];
|
pythonImportsCheck = [ "openEMS" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -43,7 +43,7 @@ buildPythonPackage rec {
|
|||||||
--replace "tornado==6.1" "tornado"
|
--replace "tornado==6.1" "tornado"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
setupPyGlobalFlags = "--with-upstream-urllib3";
|
setupPyGlobalFlags = [ "--with-upstream-urllib3" ];
|
||||||
|
|
||||||
# tests not included with release
|
# tests not included with release
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
makeFlags="$makeFlags M=$(pwd)"
|
makeFlags="$makeFlags M=$(pwd)"
|
||||||
'';
|
'';
|
||||||
buildFlags = "modules";
|
buildFlags = [ "modules" ];
|
||||||
|
|
||||||
installPhase = let
|
installPhase = let
|
||||||
modDestDir = "$out/lib/modules/${kernel.modDirVersion}/kernel"; #TODO: longer path?
|
modDestDir = "$out/lib/modules/${kernel.modDirVersion}/kernel"; #TODO: longer path?
|
||||||
|
@ -20,7 +20,7 @@ in stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ gtk3 libxml2 llvm perl sqlite ];
|
buildInputs = [ gtk3 libxml2 llvm perl sqlite ];
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
buildFlags = "GCC_BASE:=${GCC_BASE}";
|
buildFlags = [ "GCC_BASE:=${GCC_BASE}" ];
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
simple-execution = callPackage ./tests.nix { };
|
simple-execution = callPackage ./tests.nix { };
|
||||||
|
@ -45,7 +45,13 @@ rustPlatform.buildRustPackage rec {
|
|||||||
export SQLITE_MAX_EXPR_DEPTH=10000
|
export SQLITE_MAX_EXPR_DEPTH=10000
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cargoBuildFlags = "-p query-engine -p query-engine-node-api -p migration-engine-cli -p introspection-core -p prisma-fmt";
|
cargoBuildFlags = [
|
||||||
|
"-p" "query-engine"
|
||||||
|
"-p" "query-engine-node-api"
|
||||||
|
"-p" "migration-engine-cli"
|
||||||
|
"-p" "introspection-core"
|
||||||
|
"-p" "prisma-fmt"
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/lib/libquery_engine${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libquery_engine.node
|
mv $out/lib/libquery_engine${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libquery_engine.node
|
||||||
|
@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
sconsFlags = "target=release_debug platform=x11";
|
sconsFlags = [ "target=release_debug" "platform=x11" ];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sconsFlags+=" ${
|
sconsFlags+=" ${
|
||||||
lib.concatStringsSep " "
|
lib.concatStringsSep " "
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# https://docs.godotengine.org/en/stable/development/compiling/compiling_for_x11.html#building-export-templates
|
# https://docs.godotengine.org/en/stable/development/compiling/compiling_for_x11.html#building-export-templates
|
||||||
godot.overrideAttrs (oldAttrs: rec {
|
godot.overrideAttrs (oldAttrs: rec {
|
||||||
pname = "godot-export-templates";
|
pname = "godot-export-templates";
|
||||||
sconsFlags = "target=release platform=x11 tools=no";
|
sconsFlags = [ "target=release" "platform=x11" "tools=no" ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
# The godot export command expects the export templates at
|
# The godot export command expects the export templates at
|
||||||
# .../share/godot/templates/3.2.3.stable with 3.2.3 being the godot version.
|
# .../share/godot/templates/3.2.3.stable with 3.2.3 being the godot version.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ godot, lib }:
|
{ godot, lib }:
|
||||||
godot.overrideAttrs (oldAttrs: rec {
|
godot.overrideAttrs (oldAttrs: rec {
|
||||||
pname = "godot-headless";
|
pname = "godot-headless";
|
||||||
sconsFlags = "target=release_debug platform=server tools=yes";
|
sconsFlags = [ "target=release_debug" "platform=server" "tools=yes" ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
cp bin/godot_server.* $out/bin/godot-headless
|
cp bin/godot_server.* $out/bin/godot-headless
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ godot, lib }:
|
{ godot, lib }:
|
||||||
godot.overrideAttrs (oldAttrs: rec {
|
godot.overrideAttrs (oldAttrs: rec {
|
||||||
pname = "godot-server";
|
pname = "godot-server";
|
||||||
sconsFlags = "target=release platform=server tools=no";
|
sconsFlags = [ "target=release" "platform=server" "tools=no" ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
cp bin/godot_server.* $out/bin/godot-server
|
cp bin/godot_server.* $out/bin/godot-server
|
||||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "19zfzcnxavndyn6kfxp775kjcd0gigsm4y3bnh6fz5ilhnnbbbgr";
|
sha256 = "19zfzcnxavndyn6kfxp775kjcd0gigsm4y3bnh6fz5ilhnnbbbgr";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
patchFlags = "-p0";
|
patchFlags = [ "-p0" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ ocaml findlib ];
|
nativeBuildInputs = [ ocaml findlib ];
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
buildFlags = "release";
|
buildFlags = [ "release" ];
|
||||||
|
|
||||||
dontAddPrefix = true;
|
dontAddPrefix = true;
|
||||||
dontAddStaticConfigureFlags = true;
|
dontAddStaticConfigureFlags = true;
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
buildFlags = "release";
|
buildFlags = [ "release" ];
|
||||||
|
|
||||||
dontAddPrefix = true;
|
dontAddPrefix = true;
|
||||||
dontAddStaticConfigureFlags = true;
|
dontAddStaticConfigureFlags = true;
|
||||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
SDL2
|
SDL2
|
||||||
];
|
];
|
||||||
|
|
||||||
buildFlags = "release";
|
buildFlags = [ "release" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -37,7 +37,7 @@ in stdenv.mkDerivation rec {
|
|||||||
--replace "5E048E021001" "6F0E13020001"
|
--replace "5E048E021001" "6F0E13020001"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = "build-core";
|
makeFlags = [ "build-core" ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /bin/bash ${bash}/bin/bash
|
--replace /bin/bash ${bash}/bin/bash
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontAddWafCrossFlags = "true";
|
dontAddWafCrossFlags = true;
|
||||||
wafConfigureFlags = [
|
wafConfigureFlags = [
|
||||||
"--classic"
|
"--classic"
|
||||||
"--autostart=${if (optDbus != null) then "dbus" else "classic"}"
|
"--autostart=${if (optDbus != null) then "dbus" else "classic"}"
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace 60-gobi.rules --replace "/lib/firmware" "/run/current-system/firmware"
|
substituteInPlace 60-gobi.rules --replace "/lib/firmware" "/run/current-system/firmware"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = "prefix=${placeholder "out"}";
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Firmware loader for Qualcomm Gobi USB chipsets";
|
description = "Firmware loader for Qualcomm Gobi USB chipsets";
|
||||||
|
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
|
|||||||
CFLAGS = [ "-O2" "-DNDEBUG" ];
|
CFLAGS = [ "-O2" "-DNDEBUG" ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkFlags = "V=1"; # verbose output in case some test fails
|
checkFlags = [ "V=1" ]; # verbose output in case some test fails
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -22,7 +22,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
rocksdb
|
rocksdb
|
||||||
];
|
];
|
||||||
|
|
||||||
cargoBuildFlags = "--bin conduit";
|
cargoBuildFlags = [ "--bin" "conduit" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = stdenv.isDarwin;
|
broken = stdenv.isDarwin;
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "source/src";
|
sourceRoot = "source/src";
|
||||||
makeFlags = "release CONFIG_LIBRARY_PATHS= CONFIG_PKG_PATHS= GLOBAL_CC=$(CC) GLOBAL_CXX=$(CXX) GLOBAL_LD=$(CXX) SHELL=${stdenv.shell}";
|
makeFlags = [ "release" "CONFIG_LIBRARY_PATHS=" "CONFIG_PKG_PATHS=" "GLOBAL_CC=$(CC)" "GLOBAL_CXX=$(CXX)" "GLOBAL_LD=$(CXX)" "SHELL=${stdenv.shell}" ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ bc pkg-config perl ];
|
nativeBuildInputs = [ bc pkg-config perl ];
|
||||||
|
@ -87,7 +87,7 @@ stdenv.mkDerivation {
|
|||||||
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
|
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
|
||||||
];
|
];
|
||||||
|
|
||||||
ninjaFlags = "dragonfly";
|
ninjaFlags = [ "dragonfly" ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
dontUseNinjaInstall = true;
|
dontUseNinjaInstall = true;
|
||||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ installShellFiles git ];
|
nativeBuildInputs = [ installShellFiles git ];
|
||||||
buildInputs = [ libX11 libXdamage libXrender libXcomposite libXext ];
|
buildInputs = [ libX11 libXdamage libXrender libXcomposite libXext ];
|
||||||
preInstall = "mkdir -p $out/share/man/man1";
|
preInstall = "mkdir -p $out/share/man/man1";
|
||||||
installFlags = "PREFIX=${placeholder "out"}";
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple XLib program to highlight the cursor position";
|
description = "Simple XLib program to highlight the cursor position";
|
||||||
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0vidckfp277cg2gsww8a8q5b18m10iy4ppyp2qipr89771nrcmns";
|
sha256 = "0vidckfp277cg2gsww8a8q5b18m10iy4ppyp2qipr89771nrcmns";
|
||||||
rev = version;
|
rev = version;
|
||||||
};
|
};
|
||||||
makeFlags = "PREFIX=$(out)";
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
buildInputs = with xorg; [ libX11 libXext libXi libev ];
|
buildInputs = with xorg; [ libX11 libXext libXi libev ];
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -12,7 +12,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1xlbfzmy0wjyz3jpr17r4ma4i79d9b32yqwwi10vrcjzr7vsyhmx";
|
cargoSha256 = "1xlbfzmy0wjyz3jpr17r4ma4i79d9b32yqwwi10vrcjzr7vsyhmx";
|
||||||
cargoBuildFlags = "-p ${pname}";
|
cargoBuildFlags = [ "-p" pname ];
|
||||||
|
|
||||||
# FIXME can’t test --all-targets and --doc in a single invocation
|
# FIXME can’t test --all-targets and --doc in a single invocation
|
||||||
cargoTestFlags = [ "--all-targets" "--workspace" ];
|
cargoTestFlags = [ "--all-targets" "--workspace" ];
|
||||||
|
@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
# Test 01 tries to create a wireguard interface, which requires sudo.
|
# Test 01 tries to create a wireguard interface, which requires sudo.
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkFlags = "--skip device";
|
checkFlags = [ "--skip" "device" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Wireguard network manager";
|
description = "Wireguard network manager";
|
||||||
|
@ -12,8 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
makeFlags = [ "-e" ];
|
makeFlags = [ "-e" "LIBS=-lgc" ];
|
||||||
makeFlagsArray="LIBS=-lgc";
|
|
||||||
|
|
||||||
meta = with lib ; {
|
meta = with lib ; {
|
||||||
description = "Follow a symlink and print out its target file";
|
description = "Follow a symlink and print out its target file";
|
||||||
|
@ -22,7 +22,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# this test requires package to be in a git repo to succeed
|
# this test requires package to be in a git repo to succeed
|
||||||
checkFlags = "--skip respect_git_ignore";
|
checkFlags = [ "--skip" "respect_git_ignore" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tree command, improved";
|
description = "Tree command, improved";
|
||||||
|
@ -5288,7 +5288,7 @@ let
|
|||||||
hash = "sha256-+OzKRch+uRMlmSsT8FlPgI5vG8TDuafxQbmoODhNJSw=";
|
hash = "sha256-+OzKRch+uRMlmSsT8FlPgI5vG8TDuafxQbmoODhNJSw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeMakerFlags = "--libpath=${lib.getLib pkgs.openssl}/lib --incpath=${pkgs.openssl.dev}/include";
|
makeMakerFlags = [ "--libpath=${lib.getLib pkgs.openssl}/lib" "--incpath=${pkgs.openssl.dev}/include" ];
|
||||||
buildInputs = [ PathClass ];
|
buildInputs = [ PathClass ];
|
||||||
propagatedBuildInputs = [ BytesRandomSecure LWPProtocolHttps ];
|
propagatedBuildInputs = [ BytesRandomSecure LWPProtocolHttps ];
|
||||||
meta = {
|
meta = {
|
||||||
@ -6697,7 +6697,7 @@ let
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
makeMakerFlags = "SQLITE_INC=${pkgs.sqlite.dev}/include SQLITE_LIB=${pkgs.sqlite.out}/lib";
|
makeMakerFlags = [ "SQLITE_INC=${pkgs.sqlite.dev}/include" "SQLITE_LIB=${pkgs.sqlite.out}/lib" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Get rid of a pointless copy of the SQLite sources.
|
# Get rid of a pointless copy of the SQLite sources.
|
||||||
@ -6786,7 +6786,7 @@ let
|
|||||||
buildInputs = [ pkgs.postgresql ];
|
buildInputs = [ pkgs.postgresql ];
|
||||||
propagatedBuildInputs = [ DBI ];
|
propagatedBuildInputs = [ DBI ];
|
||||||
|
|
||||||
makeMakerFlags = "POSTGRES_HOME=${pkgs.postgresql}";
|
makeMakerFlags = [ "POSTGRES_HOME=${pkgs.postgresql}" ];
|
||||||
|
|
||||||
# tests freeze in a sandbox
|
# tests freeze in a sandbox
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
@ -9310,7 +9310,7 @@ let
|
|||||||
hash = "sha256-Uuax3Hyy2HpM30OboUXguejPKMwmpIo8+Zd8g0Y5Z+4=";
|
hash = "sha256-Uuax3Hyy2HpM30OboUXguejPKMwmpIo8+Zd8g0Y5Z+4=";
|
||||||
};
|
};
|
||||||
buildInputs = [ pkgs.file ConfigAutoConf TestFatal ];
|
buildInputs = [ pkgs.file ConfigAutoConf TestFatal ];
|
||||||
makeMakerFlags = "--lib=${pkgs.file}/lib";
|
makeMakerFlags = [ "--lib=${pkgs.file}/lib" ];
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
substituteInPlace t/oo-api.t \
|
substituteInPlace t/oo-api.t \
|
||||||
--replace "/usr/share/file/magic.mgc" "${pkgs.file}/share/misc/magic.mgc"
|
--replace "/usr/share/file/magic.mgc" "${pkgs.file}/share/misc/magic.mgc"
|
||||||
@ -9958,7 +9958,7 @@ let
|
|||||||
# otherwise "cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]"
|
# otherwise "cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]"
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
makeMakerFlags = "--lib_png_path=${pkgs.libpng.out} --lib_jpeg_path=${pkgs.libjpeg.out} --lib_zlib_path=${pkgs.zlib.out} --lib_ft_path=${pkgs.freetype.out} --lib_fontconfig_path=${pkgs.fontconfig.lib} --lib_xpm_path=${pkgs.xorg.libXpm.out}";
|
makeMakerFlags = [ "--lib_png_path=${pkgs.libpng.out}" "--lib_jpeg_path=${pkgs.libjpeg.out}" "--lib_zlib_path=${pkgs.zlib.out}" "--lib_ft_path=${pkgs.freetype.out}" "--lib_fontconfig_path=${pkgs.fontconfig.lib}" "--lib_xpm_path=${pkgs.xorg.libXpm.out}" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Perl interface to the gd2 graphics library";
|
description = "Perl interface to the gd2 graphics library";
|
||||||
@ -10017,7 +10017,7 @@ let
|
|||||||
url = "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-1.51.tar.gz";
|
url = "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-1.51.tar.gz";
|
||||||
hash = "sha256-FjAgMV1cVEGDaseeCKd7Qo8nf9CQvqT6gNpwd7JDaro=";
|
hash = "sha256-FjAgMV1cVEGDaseeCKd7Qo8nf9CQvqT6gNpwd7JDaro=";
|
||||||
};
|
};
|
||||||
makeMakerFlags = "LIBS=-L${pkgs.geoip}/lib INC=-I${pkgs.geoip}/include";
|
makeMakerFlags = [ "LIBS=-L${pkgs.geoip}/lib" "INC=-I${pkgs.geoip}/include" ];
|
||||||
doCheck = false; # seems to access the network
|
doCheck = false; # seems to access the network
|
||||||
meta = {
|
meta = {
|
||||||
description = "Look up location and network information by IP Address";
|
description = "Look up location and network information by IP Address";
|
||||||
@ -10510,7 +10510,7 @@ let
|
|||||||
hash = "sha256-fY8se2F2L7TsctLsKBKQ8vh/nH0pgnPaRSVDKmXncNY=";
|
hash = "sha256-fY8se2F2L7TsctLsKBKQ8vh/nH0pgnPaRSVDKmXncNY=";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ pkgs.krb5Full.dev ];
|
propagatedBuildInputs = [ pkgs.krb5Full.dev ];
|
||||||
makeMakerFlags = "--gssapiimpl ${pkgs.krb5Full.dev}";
|
makeMakerFlags = [ "--gssapiimpl" "${pkgs.krb5Full.dev}" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Perl extension providing access to the GSSAPIv2 library";
|
description = "Perl extension providing access to the GSSAPIv2 library";
|
||||||
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
||||||
@ -11783,7 +11783,7 @@ let
|
|||||||
hash = "sha256-dNRNcBwfFPxLmE+toelVcmtQTC2LBtJl56hh+llDy0g=";
|
hash = "sha256-dNRNcBwfFPxLmE+toelVcmtQTC2LBtJl56hh+llDy0g=";
|
||||||
};
|
};
|
||||||
buildInputs = [ pkgs.freetype pkgs.fontconfig pkgs.libjpeg pkgs.libpng ];
|
buildInputs = [ pkgs.freetype pkgs.fontconfig pkgs.libjpeg pkgs.libpng ];
|
||||||
makeMakerFlags = "--incpath ${pkgs.libjpeg.dev}/include --libpath ${pkgs.libjpeg.out}/lib --incpath ${pkgs.libpng.dev}/include --libpath ${pkgs.libpng.out}/lib";
|
makeMakerFlags = [ "--incpath ${pkgs.libjpeg.dev}/include" "--libpath ${pkgs.libjpeg.out}/lib" "--incpath" "${pkgs.libpng.dev}/include" "--libpath" "${pkgs.libpng.out}/lib" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Perl extension for Generating 24 bit Images";
|
description = "Perl extension for Generating 24 bit Images";
|
||||||
homepage = "http://imager.perl.org";
|
homepage = "http://imager.perl.org";
|
||||||
@ -11844,7 +11844,7 @@ let
|
|||||||
};
|
};
|
||||||
buildInputs = [ pkgs.libpng pkgs.libjpeg TestNoWarnings ];
|
buildInputs = [ pkgs.libpng pkgs.libjpeg TestNoWarnings ];
|
||||||
propagatedBuildInputs = [ pkgs.zlib ];
|
propagatedBuildInputs = [ pkgs.zlib ];
|
||||||
makeMakerFlags = "--with-jpeg-includes=${pkgs.libjpeg.dev}/include --with-jpeg-libs=${pkgs.libjpeg.out}/lib --with-png-includes=${pkgs.libpng.dev}/include --with-png-libs=${pkgs.libpng.out}/lib";
|
makeMakerFlags = [ "--with-jpeg-includes=${pkgs.libjpeg.dev}/include" "--with-jpeg-libs=${pkgs.libjpeg.out}/lib" "--with-png-includes=${pkgs.libpng.dev}/include" "--with-png-libs=${pkgs.libpng.out}/lib" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Fast, high-quality fixed-point image resizing";
|
description = "Fast, high-quality fixed-point image resizing";
|
||||||
license = with lib.licenses; [ gpl2Plus ];
|
license = with lib.licenses; [ gpl2Plus ];
|
||||||
@ -12574,7 +12574,7 @@ let
|
|||||||
propagatedBuildInputs = [ Inline ];
|
propagatedBuildInputs = [ Inline ];
|
||||||
|
|
||||||
# TODO: upgrade https://github.com/NixOS/nixpkgs/pull/89731
|
# TODO: upgrade https://github.com/NixOS/nixpkgs/pull/89731
|
||||||
makeMakerFlags = "J2SDK=${pkgs.jdk8}";
|
makeMakerFlags = [ "J2SDK=${pkgs.jdk8}" ];
|
||||||
|
|
||||||
# FIXME: Apparently tests want to access the network.
|
# FIXME: Apparently tests want to access the network.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
@ -12831,7 +12831,7 @@ let
|
|||||||
outputs = [ "out" "tex" ];
|
outputs = [ "out" "tex" ];
|
||||||
propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageMagick ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
|
propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageMagick ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
|
nativeBuildInputs = [ pkgs.makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
makeMakerFlags = "TEXMF=\${tex} NOMKTEXLSR";
|
makeMakerFlags = [ "TEXMF=\${tex}" "NOMKTEXLSR" ];
|
||||||
# shebangs need to be patched before executables are copied to $out
|
# shebangs need to be patched before executables are copied to $out
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
patchShebangs bin/
|
patchShebangs bin/
|
||||||
@ -12909,7 +12909,13 @@ let
|
|||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
buildInputs = [ pkgs.apacheHttpd pkgs.apr pkgs.aprutil ApacheTest ExtUtilsXSBuilder ];
|
buildInputs = [ pkgs.apacheHttpd pkgs.apr pkgs.aprutil ApacheTest ExtUtilsXSBuilder ];
|
||||||
propagatedBuildInputs = [ (pkgs.apacheHttpdPackages.mod_perl.override { inherit perl; }) ];
|
propagatedBuildInputs = [ (pkgs.apacheHttpdPackages.mod_perl.override { inherit perl; }) ];
|
||||||
makeMakerFlags = "--with-apache2-src=${pkgs.apacheHttpd.dev} --with-apache2-apxs=${pkgs.apacheHttpd.dev}/bin/apxs --with-apache2-httpd=${pkgs.apacheHttpd.out}/bin/httpd --with-apr-config=${pkgs.apr.dev}/bin/apr-1-config --with-apu-config=${pkgs.aprutil.dev}/bin/apu-1-config";
|
makeMakerFlags = [
|
||||||
|
"--with-apache2-src=${pkgs.apacheHttpd.dev}"
|
||||||
|
"--with-apache2-apxs=${pkgs.apacheHttpd.dev}/bin/apxs"
|
||||||
|
"--with-apache2-httpd=${pkgs.apacheHttpd.out}/bin/httpd"
|
||||||
|
"--with-apr-config=${pkgs.apr.dev}/bin/apr-1-config"
|
||||||
|
"--with-apu-config=${pkgs.aprutil.dev}/bin/apu-1-config"
|
||||||
|
];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# override broken prereq check
|
# override broken prereq check
|
||||||
substituteInPlace configure --replace "prereq_check=\"\$PERL \$PERL_OPTS build/version_check.pl\"" "prereq_check=\"echo\""
|
substituteInPlace configure --replace "prereq_check=\"\$PERL \$PERL_OPTS build/version_check.pl\"" "prereq_check=\"echo\""
|
||||||
@ -14573,7 +14579,7 @@ let
|
|||||||
# `overflow'; Pari.o:(.bss+0x80): first defined here
|
# `overflow'; Pari.o:(.bss+0x80): first defined here
|
||||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
preConfigure = "cp ${pari_tgz} pari-${pariversion}.tgz";
|
preConfigure = "cp ${pari_tgz} pari-${pariversion}.tgz";
|
||||||
makeMakerFlags = "pari_tgz=pari-${pariversion}.tgz";
|
makeMakerFlags = [ "pari_tgz=pari-${pariversion}.tgz" ];
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://cpan/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.030518.zip";
|
url = "mirror://cpan/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.030518.zip";
|
||||||
hash = "sha256-3DiVWpaQvmuvqN4lJiEjd8Psn+jaXsAiY6nK+UtYu5E=";
|
hash = "sha256-3DiVWpaQvmuvqN4lJiEjd8Psn+jaXsAiY6nK+UtYu5E=";
|
||||||
@ -15739,7 +15745,7 @@ let
|
|||||||
hash = "sha256-9bghtZsP3JZw5G7Q/PMtiRHyUSYYmotowWUvkiHu4mk=";
|
hash = "sha256-9bghtZsP3JZw5G7Q/PMtiRHyUSYYmotowWUvkiHu4mk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeMakerFlags = "MP_AP_DESTDIR=$out";
|
makeMakerFlags = [ "MP_AP_DESTDIR=$out" ];
|
||||||
buildInputs = [ pkgs.apacheHttpd ];
|
buildInputs = [ pkgs.apacheHttpd ];
|
||||||
doCheck = false; # would try to start Apache HTTP server
|
doCheck = false; # would try to start Apache HTTP server
|
||||||
passthru.tests = nixosTests.mod_perl;
|
passthru.tests = nixosTests.mod_perl;
|
||||||
@ -16437,7 +16443,7 @@ let
|
|||||||
buildInputs = [ ModuleBuildTiny TestSharedFork pkgs.postgresql ];
|
buildInputs = [ ModuleBuildTiny TestSharedFork pkgs.postgresql ];
|
||||||
propagatedBuildInputs = [ DBDPg DBI FileWhich FunctionParameters Moo TieHashMethod TryTiny TypeTiny ];
|
propagatedBuildInputs = [ DBDPg DBI FileWhich FunctionParameters Moo TieHashMethod TryTiny TypeTiny ];
|
||||||
|
|
||||||
makeMakerFlags = "POSTGRES_HOME=${pkgs.postgresql}";
|
makeMakerFlags = [ "POSTGRES_HOME=${pkgs.postgresql}" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "PostgreSQL runner for tests";
|
description = "PostgreSQL runner for tests";
|
||||||
@ -17578,7 +17584,7 @@ let
|
|||||||
hash = "sha256-hS1u6H6PDQFCIwJlgcu1aSS6jN3TzrKcYZHbthItQ8U=";
|
hash = "sha256-hS1u6H6PDQFCIwJlgcu1aSS6jN3TzrKcYZHbthItQ8U=";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ DigestHMAC ];
|
propagatedBuildInputs = [ DigestHMAC ];
|
||||||
makeMakerFlags = "--noonline-tests";
|
makeMakerFlags = [ "--noonline-tests" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Perl Interface to the Domain Name System";
|
description = "Perl Interface to the Domain Name System";
|
||||||
license = with lib.licenses; [ mit ];
|
license = with lib.licenses; [ mit ];
|
||||||
@ -22734,8 +22740,8 @@ let
|
|||||||
pkgs.tk
|
pkgs.tk
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.CoreServices ];
|
darwin.apple_sdk.frameworks.CoreServices ];
|
||||||
makeMakerFlags = lib.optionalString stdenv.isLinux
|
makeMakerFlags = lib.optionals stdenv.isLinux
|
||||||
"--tclsh=${pkgs.tcl}/bin/tclsh --nousestubs";
|
[ "--tclsh=${pkgs.tcl}/bin/tclsh" "--nousestubs" ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "Tcl extension module for Perl";
|
description = "Tcl extension module for Perl";
|
||||||
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
||||||
@ -26156,7 +26162,7 @@ let
|
|||||||
url = "mirror://cpan/authors/id/S/SR/SREZIC/Tk-804.035.tar.gz";
|
url = "mirror://cpan/authors/id/S/SR/SREZIC/Tk-804.035.tar.gz";
|
||||||
hash = "sha256-TSuAKRum3jTY7IhqCFptvSt5C5JgNaCH6ZAlYUxf/dQ=";
|
hash = "sha256-TSuAKRum3jTY7IhqCFptvSt5C5JgNaCH6ZAlYUxf/dQ=";
|
||||||
};
|
};
|
||||||
makeMakerFlags = "X11INC=${pkgs.xorg.libX11.dev}/include X11LIB=${pkgs.xorg.libX11.out}/lib";
|
makeMakerFlags = [ "X11INC=${pkgs.xorg.libX11.dev}/include" "X11LIB=${pkgs.xorg.libX11.out}/lib" ];
|
||||||
buildInputs = [ pkgs.xorg.libX11 pkgs.libpng ];
|
buildInputs = [ pkgs.xorg.libX11 pkgs.libpng ];
|
||||||
doCheck = false; # Expects working X11.
|
doCheck = false; # Expects working X11.
|
||||||
meta = {
|
meta = {
|
||||||
@ -26172,7 +26178,7 @@ let
|
|||||||
url = "mirror://cpan/authors/id/A/AS/ASB/Tk-ToolBar-0.12.tar.gz";
|
url = "mirror://cpan/authors/id/A/AS/ASB/Tk-ToolBar-0.12.tar.gz";
|
||||||
hash = "sha256-Rj4oTsRxN+fEJclpGwKo3sXOJytY6h9jWa6AQaI53Q8=";
|
hash = "sha256-Rj4oTsRxN+fEJclpGwKo3sXOJytY6h9jWa6AQaI53Q8=";
|
||||||
};
|
};
|
||||||
makeMakerFlags = "X11INC=${pkgs.xorg.libX11.dev}/include X11LIB=${pkgs.xorg.libX11.out}/lib";
|
makeMakerFlags = [ "X11INC=${pkgs.xorg.libX11.dev}/include" "X11LIB=${pkgs.xorg.libX11.out}/lib" ];
|
||||||
buildInputs = [ Tk ];
|
buildInputs = [ Tk ];
|
||||||
doCheck = false; # Expects working X11.
|
doCheck = false; # Expects working X11.
|
||||||
meta = {
|
meta = {
|
||||||
@ -27279,7 +27285,7 @@ let
|
|||||||
'' + lib.optionalString stdenv.isCygwin ''
|
'' + lib.optionalString stdenv.isCygwin ''
|
||||||
sed -i"" -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm
|
sed -i"" -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm
|
||||||
'';
|
'';
|
||||||
makeMakerFlags = "EXPATLIBPATH=${pkgs.expat.out}/lib EXPATINCPATH=${pkgs.expat.dev}/include";
|
makeMakerFlags = [ "EXPATLIBPATH=${pkgs.expat.out}/lib" "EXPATINCPATH=${pkgs.expat.dev}/include" ];
|
||||||
propagatedBuildInputs = [ LWP ];
|
propagatedBuildInputs = [ LWP ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "A perl module for parsing XML documents";
|
description = "A perl module for parsing XML documents";
|
||||||
@ -27806,7 +27812,7 @@ let
|
|||||||
NIX_CFLAGS_COMPILE = "-I${pkgs.openssl_1_1.dev}/include -I${pkgs.libidn2}.dev}/include";
|
NIX_CFLAGS_COMPILE = "-I${pkgs.openssl_1_1.dev}/include -I${pkgs.libidn2}.dev}/include";
|
||||||
NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl_1_1}/lib -L${lib.getLib pkgs.libidn2}/lib -lcrypto -lidn2";
|
NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl_1_1}/lib -L${lib.getLib pkgs.libidn2}/lib -lcrypto -lidn2";
|
||||||
|
|
||||||
makeMakerFlags = "--prefix-openssl=${pkgs.openssl_1_1.dev}";
|
makeMakerFlags = [ "--prefix-openssl=${pkgs.openssl_1_1.dev}" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
buildInputs = [ DevelChecklib ModuleInstall ModuleInstallXSUtil TestFatal pkgs.ldns pkgs.libidn2 pkgs.openssl_1_1 ];
|
buildInputs = [ DevelChecklib ModuleInstall ModuleInstallXSUtil TestFatal pkgs.ldns pkgs.libidn2 pkgs.openssl_1_1 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user