mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
Merge release-22.05 into staging-next-22.05
This commit is contained in:
@@ -280,7 +280,7 @@ in
|
||||
serviceConfig = defaultServiceConfig // {
|
||||
User = cfg.user;
|
||||
ExecStart = ''
|
||||
${pkgs.python3Packages.gunicorn}/bin/gunicorn \
|
||||
${pkg.python.pkgs.gunicorn}/bin/gunicorn \
|
||||
-c ${pkg}/lib/paperless-ngx/gunicorn.conf.py paperless.asgi:application
|
||||
'';
|
||||
Restart = "on-failure";
|
||||
|
||||
@@ -29,6 +29,12 @@ in {
|
||||
description = "Profile name, defaults to 'system' (NixOS).";
|
||||
};
|
||||
|
||||
host = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = "Cachix uri to use.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.cachix;
|
||||
@@ -63,7 +69,10 @@ in {
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
EnvironmentFile = cfg.credentialsFile;
|
||||
ExecStart = "${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} deploy agent ${cfg.name} ${if cfg.profile != null then cfg.profile else ""}";
|
||||
ExecStart = ''
|
||||
${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} ${lib.optionalString (cfg.host != null) "--host ${cfg.host}"} \
|
||||
deploy agent ${cfg.name} ${if cfg.profile != null then cfg.profile else ""}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, nixosTests
|
||||
, python3
|
||||
, ghostscript
|
||||
, imagemagick
|
||||
, imagemagickBig
|
||||
, jbig2enc
|
||||
, optipng
|
||||
, pngquant
|
||||
@@ -31,7 +31,16 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
path = lib.makeBinPath [ ghostscript imagemagick jbig2enc optipng pngquant qpdf tesseract4 unpaper ];
|
||||
path = lib.makeBinPath [
|
||||
ghostscript
|
||||
imagemagickBig
|
||||
jbig2enc
|
||||
optipng
|
||||
pngquant
|
||||
qpdf
|
||||
tesseract4
|
||||
unpaper
|
||||
];
|
||||
in
|
||||
python.pkgs.pythonPackages.buildPythonApplication rec {
|
||||
pname = "paperless-ngx";
|
||||
|
||||
@@ -44,6 +44,11 @@ let
|
||||
# BEAM-based languages.
|
||||
elixir = elixir_1_13;
|
||||
|
||||
elixir_1_14 = lib'.callElixir ../interpreters/elixir/1.14.nix {
|
||||
inherit erlang;
|
||||
debugInfo = true;
|
||||
};
|
||||
|
||||
elixir_1_13 = lib'.callElixir ../interpreters/elixir/1.13.nix {
|
||||
inherit erlang;
|
||||
debugInfo = true;
|
||||
|
||||
8
pkgs/development/interpreters/elixir/1.14.nix
Normal file
8
pkgs/development/interpreters/elixir/1.14.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ mkDerivation }:
|
||||
|
||||
mkDerivation {
|
||||
version = "1.14.0";
|
||||
sha256 = "16rc4qaykddda6ax5f8zw70yhapgwraqbgx5gp3f40dvfax3d51l";
|
||||
# https://hexdocs.pm/elixir/1.14.0/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
|
||||
minimumOTPVersion = "23";
|
||||
}
|
||||
@@ -50,11 +50,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "trafficserver";
|
||||
version = "9.1.2";
|
||||
version = "9.1.3";
|
||||
|
||||
src = fetchzip {
|
||||
url = "mirror://apache/trafficserver/trafficserver-${version}.tar.bz2";
|
||||
sha256 = "sha256-eRpyTdwwO5EzrVpt9fF6VEYGZjHb905nQJd065wY5RU=";
|
||||
sha256 = "sha256-Ihhsbn4PvIjWskmbWKajThIwtuiEyldBpmtuQ8RdyHA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -64,8 +64,6 @@ stdenv.mkDerivation rec {
|
||||
url = "https://github.com/apache/trafficserver/commit/19d3af481cf74c91fbf713fc9d2f8b138ed5fbaf.diff";
|
||||
sha256 = "0z1ikgpp00rzrrcqh97931586yn9wbksgai9xlkcjd5cg8gq0150";
|
||||
})
|
||||
|
||||
./fix-catch2-version-incompatibility.patch
|
||||
];
|
||||
|
||||
# NOTE: The upstream README indicates that flex is needed for some features,
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
diff --git a/src/tscore/unit_tests/test_History.cc b/src/tscore/unit_tests/test_History.cc
|
||||
index 3e699139da0..7505f10aa4c 100644
|
||||
--- a/src/tscore/unit_tests/test_History.cc
|
||||
+++ b/src/tscore/unit_tests/test_History.cc
|
||||
@@ -59,10 +59,10 @@ TEST_CASE("History", "[libts][History]")
|
||||
REQUIRE(history[2].reentrancy == static_cast<short>(NO_REENTRANT));
|
||||
|
||||
history[0].location.str(buf, sizeof(buf));
|
||||
- REQUIRE(string_view{buf} == "test_History.cc:48 (____C_A_T_C_H____T_E_S_T____0)");
|
||||
+ REQUIRE(string_view{buf} == "test_History.cc:48 (C_A_T_C_H_T_E_S_T_0)");
|
||||
|
||||
history[1].location.str(buf, sizeof(buf));
|
||||
- REQUIRE(string_view{buf} == "test_History.cc:49 (____C_A_T_C_H____T_E_S_T____0)");
|
||||
+ REQUIRE(string_view{buf} == "test_History.cc:49 (C_A_T_C_H_T_E_S_T_0)");
|
||||
|
||||
ts::LocalBufferWriter<128> w;
|
||||
SM<HISTORY_DEFAULT_SIZE> *sm = new SM<HISTORY_DEFAULT_SIZE>;
|
||||
@@ -71,10 +71,10 @@ TEST_CASE("History", "[libts][History]")
|
||||
SM_REMEMBER(sm, 3, NO_REENTRANT);
|
||||
|
||||
w.print("{}", sm->history[0].location);
|
||||
- REQUIRE(w.view() == "test_History.cc:69 (____C_A_T_C_H____T_E_S_T____0)");
|
||||
+ REQUIRE(w.view() == "test_History.cc:69 (C_A_T_C_H_T_E_S_T_0)");
|
||||
|
||||
w.reset().print("{}", sm->history[1].location);
|
||||
- REQUIRE(w.view() == "test_History.cc:70 (____C_A_T_C_H____T_E_S_T____0)");
|
||||
+ REQUIRE(w.view() == "test_History.cc:70 (C_A_T_C_H_T_E_S_T_0)");
|
||||
|
||||
REQUIRE(sm->history[0].event == 1);
|
||||
REQUIRE(sm->history[0].reentrancy == 1);
|
||||
@@ -106,10 +106,10 @@ TEST_CASE("History", "[libts][History]")
|
||||
REQUIRE(sm2->history.overflowed() == true);
|
||||
|
||||
w.reset().print("{}", sm2->history[0].location);
|
||||
- REQUIRE(w.view() == "test_History.cc:103 (____C_A_T_C_H____T_E_S_T____0)");
|
||||
+ REQUIRE(w.view() == "test_History.cc:103 (C_A_T_C_H_T_E_S_T_0)");
|
||||
|
||||
w.reset().print("{}", sm2->history[1].location);
|
||||
- REQUIRE(w.view() == "test_History.cc:98 (____C_A_T_C_H____T_E_S_T____0)");
|
||||
+ REQUIRE(w.view() == "test_History.cc:98 (C_A_T_C_H_T_E_S_T_0)");
|
||||
|
||||
sm2->history.clear();
|
||||
REQUIRE(sm2->history.size() == 0);
|
||||
@@ -14317,7 +14317,7 @@ with pkgs;
|
||||
inherit (beam.interpreters)
|
||||
erlang erlangR25 erlangR24 erlangR23 erlangR22 erlangR21
|
||||
erlang_odbc erlang_javac erlang_odbc_javac erlang_basho_R16B02
|
||||
elixir elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9
|
||||
elixir elixir_1_14 elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9
|
||||
elixir_ls;
|
||||
|
||||
erlang_nox = beam_nox.interpreters.erlang;
|
||||
|
||||
@@ -105,7 +105,7 @@ with beam; {
|
||||
# access for example elixir built with different version of Erlang, use
|
||||
# `beam.packages.erlangR24.elixir`.
|
||||
inherit (packages.erlang)
|
||||
elixir elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9 elixir_ls;
|
||||
elixir elixir_1_14 elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9 elixir_ls;
|
||||
|
||||
inherit (packages.erlang) lfe lfe_1_3;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user