3
0
Fork 0
forked from mirrors/nixpkgs

haproxy: 2.3.14 -> 2.5.1

Closes #153262
This commit is contained in:
Thomas Gerbet 2022-01-30 13:34:06 +01:00
parent 180be3e2b7
commit 023a62d2de
2 changed files with 3 additions and 4 deletions

View file

@ -16,7 +16,6 @@ import ./make-test-python.nix ({ pkgs, ...}: {
frontend http
bind *:80
mode http
option http-use-htx
http-request use-service prometheus-exporter if { path /metrics }
use_backend http_server
'';

View file

@ -11,11 +11,11 @@ assert usePcre -> pcre != null;
stdenv.mkDerivation rec {
pname = "haproxy";
version = "2.3.14";
version = "2.5.1";
src = fetchurl {
url = "https://www.haproxy.org/download/${lib.versions.majorMinor version}/src/${pname}-${version}.tar.gz";
sha256 = "0ah6xsxlk1a7jsxdg0pbdhzhssz9ysrfxd3bs5hm1shql1jmqzh4";
sha256 = "sha256-PpB5DfyDKvpspP30Uo3izi508+H3S+0NcK1UvVkg6VQ=";
};
buildInputs = [ openssl zlib ]
@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
"USE_SYSTEMD=yes"
"USE_GETADDRINFO=1"
] ++ lib.optionals withPrometheusExporter [
"EXTRA_OBJS=contrib/prometheus-exporter/service-prometheus.o"
"USE_PROMEX=yes"
] ++ [ "CC=${stdenv.cc.targetPrefix}cc" ];
enableParallelBuilding = true;