forked from mirrors/nixpkgs
parent
180be3e2b7
commit
023a62d2de
|
@ -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
|
||||
'';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue