diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-06-26 18:01:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 18:01:29 +0000 |
commit | 4e9dcbbbc60fab8995c89c7a6298b0ae47717d35 (patch) | |
tree | 7a8880e9a0535a1a1bd65ee5159e3e562e067000 /pkgs/servers | |
parent | 5e94616bdbf99eae27a5274f7bcc845ef07ffe0d (diff) | |
parent | e98c3025216bde4a3c5a51ab58882e7a64ea2bb7 (diff) | |
download | nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.tar nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.tar.gz nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.tar.bz2 nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.tar.lz nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.tar.xz nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.tar.zst nixpkgs-4e9dcbbbc60fab8995c89c7a6298b0ae47717d35.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/dns/knot-dns/default.nix | 10 | ||||
-rw-r--r-- | pkgs/servers/scaphandre/default.nix | 61 | ||||
-rw-r--r-- | pkgs/servers/snac2/default.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/sql/postgresql/ext/pgroonga.nix | 13 | ||||
-rw-r--r-- | pkgs/servers/sql/proxysql/default.nix | 5 | ||||
-rw-r--r-- | pkgs/servers/sql/proxysql/makefiles.patch | 44 |
6 files changed, 98 insertions, 39 deletions
diff --git a/pkgs/servers/dns/knot-dns/default.nix b/pkgs/servers/dns/knot-dns/default.nix index f5a3dec64e5..ba394429926 100644 --- a/pkgs/servers/dns/knot-dns/default.nix +++ b/pkgs/servers/dns/knot-dns/default.nix @@ -7,11 +7,11 @@ stdenv.mkDerivation rec { pname = "knot-dns"; - version = "3.2.7"; + version = "3.2.8"; src = fetchurl { url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"; - sha256 = "d3b7872ac8aa80f7f54ddb1bb3b1e2f90ec55f7270a2c4a9338eab42b7d2767b"; + sha256 = "ef419a428f327def77780bc90eda763b51e6121fe548543da84b9eb96a261a6e"; }; outputs = [ "bin" "out" "dev" ]; @@ -29,12 +29,6 @@ stdenv.mkDerivation rec { ./runtime-deps.patch ]; - # Upstream mistake in 3.2.7: too strict constraint. - postPatch = '' - substituteInPlace configure.ac \ - --replace 'libngtcp2 = 0.13.0' 'libngtcp2 = 0.13.1' - ''; - nativeBuildInputs = [ pkg-config autoreconfHook ]; buildInputs = [ gnutls liburcu libidn2 libunistring diff --git a/pkgs/servers/scaphandre/default.nix b/pkgs/servers/scaphandre/default.nix new file mode 100644 index 00000000000..cc01b684e9e --- /dev/null +++ b/pkgs/servers/scaphandre/default.nix @@ -0,0 +1,61 @@ +{ stdenv +, lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, openssl +, powercap +, runCommand +, dieHook +, nixosTests +}: + +rustPlatform.buildRustPackage rec { + pname = "scaphandre"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "hubblo-org"; + repo = pname; + rev = "v${version}"; + hash = "sha256-cXwgPYTgom4KrL/PH53Fk6ChtALuMYyJ/oTrUKHCrzE="; + }; + + cargoSha256 = "sha256-Vdkq9ShbHWepvIgHPjhKY+LmhjS+Pl84QelgEpen7Qs="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + + checkPhase = '' + runHook preCheck + + # Work around to pass test due to non existing path + # https://github.com/hubblo-org/scaphandre/blob/v0.5.0/src/sensors/powercap_rapl.rs#L29 + export SCAPHANDRE_POWERCAP_PATH="$(mktemp -d)/scaphandre" + + mkdir -p "$SCAPHANDRE_POWERCAP_PATH" + + runHook postCheck + ''; + + passthru.tests = { + stdout = self: runCommand "${pname}-test" { + buildInputs = [ + self + dieHook + ]; + } '' + ${self}/bin/scaphandre stdout -t 4 > $out || die "Scaphandre failed to measure consumption" + [ -s $out ] + ''; + vm = nixosTests.scaphandre; + }; + + meta = with lib; { + description = "Electrical power consumption metrology agent"; + homepage = "https://github.com/hubblo-org/scaphandre"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ gaelreyrol ]; + }; +} diff --git a/pkgs/servers/snac2/default.nix b/pkgs/servers/snac2/default.nix index f190cda238a..82ff542c922 100644 --- a/pkgs/servers/snac2/default.nix +++ b/pkgs/servers/snac2/default.nix @@ -10,14 +10,14 @@ stdenv.mkDerivation rec { pname = "snac2"; - version = "2.31"; + version = "2.35"; src = fetchFromGitea { domain = "codeberg.org"; owner = "grunfink"; repo = pname; rev = version; - hash = "sha256-zkeoj+l82aP3/rXn7JuNS4OvAGnHaVRz+xXxPEPMEs8="; + hash = "sha256-V9Q9rjinFDFCi2snQ27R0Y9KFrYD/HLElnT8KV/3bP4="; }; buildInputs = [ curl openssl ]; diff --git a/pkgs/servers/sql/postgresql/ext/pgroonga.nix b/pkgs/servers/sql/postgresql/ext/pgroonga.nix index 835701456dc..b847de1f3ae 100644 --- a/pkgs/servers/sql/postgresql/ext/pgroonga.nix +++ b/pkgs/servers/sql/postgresql/ext/pgroonga.nix @@ -1,18 +1,21 @@ -{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack, groonga }: +{ lib, stdenv, fetchurl, pkg-config, postgresql, msgpack-c, groonga }: stdenv.mkDerivation rec { pname = "pgroonga"; - version = "3.0.7"; + version = "3.0.8"; src = fetchurl { url = "https://packages.groonga.org/source/${pname}/${pname}-${version}.tar.gz"; - hash = "sha256-iF/zh4zDDpAw5fxW1WG8i2bfPt4VYsnYArwOoE/lwgM="; + hash = "sha256-2/dInLG8isiSJHJgNyxgbUwMd/mtcUJxcTvSnVpBZ9M="; }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ postgresql msgpack groonga ]; + buildInputs = [ postgresql msgpack-c groonga ]; - makeFlags = [ "HAVE_MSGPACK=1" ]; + makeFlags = [ + "HAVE_MSGPACK=1" + "MSGPACK_PACKAGE_NAME=msgpack-c" + ]; installPhase = '' install -D pgroonga.so -t $out/lib/ diff --git a/pkgs/servers/sql/proxysql/default.nix b/pkgs/servers/sql/proxysql/default.nix index f32f6a9814c..6847c5064dc 100644 --- a/pkgs/servers/sql/proxysql/default.nix +++ b/pkgs/servers/sql/proxysql/default.nix @@ -33,13 +33,13 @@ stdenv.mkDerivation rec { pname = "proxysql"; - version = "2.5.2"; + version = "2.5.3"; src = fetchFromGitHub { owner = "sysown"; repo = pname; rev = version; - hash = "sha256-KPTvFbEreWQBAs5ofcdVzlVqL0t5pM/mMLv4+E4lJ5M="; + hash = "sha256-D/AUjndpu4QJmlgLBXRqMj9gsHYitEYhHVMQzoab1ik="; }; patches = [ @@ -171,5 +171,6 @@ stdenv.mkDerivation rec { description = "High-performance MySQL proxy"; license = with licenses; [ gpl3Only ]; maintainers = with maintainers; [ ajs124 ]; + platforms = platforms.unix; }; } diff --git a/pkgs/servers/sql/proxysql/makefiles.patch b/pkgs/servers/sql/proxysql/makefiles.patch index ed16c9d6470..bfe89725455 100644 --- a/pkgs/servers/sql/proxysql/makefiles.patch +++ b/pkgs/servers/sql/proxysql/makefiles.patch @@ -1,8 +1,8 @@ diff --git a/Makefile b/Makefile -index df7ed196..3a3b393d 100644 +index c053ab64..03f38a21 100644 --- a/Makefile +++ b/Makefile -@@ -57,11 +57,7 @@ endif +@@ -59,11 +59,7 @@ endif export MAKEOPT=-j ${NPROCS} @@ -15,7 +15,7 @@ index df7ed196..3a3b393d 100644 USERCHECK := $(shell getent passwd proxysql) GROUPCHECK := $(shell getent group proxysql) -@@ -784,16 +780,10 @@ cleanbuild: +@@ -868,16 +864,10 @@ cleanbuild: .PHONY: install install: src/proxysql @@ -36,10 +36,10 @@ index df7ed196..3a3b393d 100644 install -m 0755 etc/init.d/proxysql /etc/init.d ifeq ($(DISTRO),"CentOS Linux") diff --git a/deps/Makefile b/deps/Makefile -index 47c0f3c3..80d33d11 100644 +index dbe495c0..9c50bab8 100644 --- a/deps/Makefile +++ b/deps/Makefile -@@ -66,10 +66,7 @@ endif +@@ -69,10 +69,7 @@ default: $(tmpdefault) libinjection/libinjection/src/libinjection.a: @@ -50,8 +50,8 @@ index 47c0f3c3..80d33d11 100644 cd libinjection/libinjection && patch -p1 < ../libinjection_sqli.c.patch endif ifeq ($(UNAME_S),Darwin) -@@ -83,8 +80,6 @@ libinjection: libinjection/libinjection/src/libinjection.a - +@@ -91,8 +88,6 @@ $(error Incompatible OpenSSL version: struct bio_st mismatch!) + endif libssl/openssl/libssl.a: - cd libssl && rm -rf openssl-openssl-*/ openssl-3*/ || true @@ -59,7 +59,7 @@ index 47c0f3c3..80d33d11 100644 # cd libssl/openssl && patch crypto/ec/curve448/curve448.c < ../curve448.c-multiplication-overflow.patch # cd libssl/openssl && patch crypto/asn1/a_time.c < ../a_time.c-multiplication-overflow.patch cd libssl/openssl && ./config no-ssl3 no-tests -@@ -103,8 +98,6 @@ ifeq ($(MIN_VERSION),$(lastword $(SORTED_VERSIONS))) +@@ -112,8 +107,6 @@ ifeq ($(MIN_VERSION),$(lastword $(SORTED_VERSIONS))) endif libhttpserver/libhttpserver/build/src/.libs/libhttpserver.a: libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a re2/re2/obj/libre2.a @@ -68,7 +68,7 @@ index 47c0f3c3..80d33d11 100644 #ifeq ($(REQUIRE_PATCH), true) cd libhttpserver/libhttpserver && patch -p1 < ../noexcept.patch cd libhttpserver/libhttpserver && patch -p1 < ../re2_regex.patch -@@ -122,8 +115,6 @@ libhttpserver: libhttpserver/libhttpserver/build/src/.libs/libhttpserver.a +@@ -131,8 +124,6 @@ libhttpserver: libhttpserver/libhttpserver/build/src/.libs/libhttpserver.a libev/libev/.libs/libev.a: @@ -77,16 +77,16 @@ index 47c0f3c3..80d33d11 100644 cd libev/libev && patch ev.c < ../ev.c-multiplication-overflow.patch cd libev/libev && ./configure cd libev/libev && CC=${CC} CXX=${CXX} ${MAKE} -@@ -132,8 +123,6 @@ ev: libev/libev/.libs/libev.a - +@@ -148,8 +139,6 @@ coredumper/coredumper/src/libcoredumper.a: + coredumper: coredumper/coredumper/src/libcoredumper.a curl/curl/lib/.libs/libcurl.a: libssl/openssl/libssl.a - cd curl && rm -rf curl-*/ || true - cd curl && tar -zxf curl-*.tar.gz # cd curl/curl && ./configure --disable-debug --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-ipv6 --disable-sspi --disable-crypto-auth --disable-ntlm-wb --disable-tls-srp --without-nghttp2 --without-libidn2 --without-libssh2 --without-brotli --with-ssl=$(shell pwd)/../../libssl/openssl/ && CC=${CC} CXX=${CXX} ${MAKE} - # cd curl/curl && patch configure < ../configure.patch cd curl/curl && autoreconf -fi -@@ -143,16 +132,6 @@ curl: curl/curl/lib/.libs/libcurl.a + ifeq ($(UNAME_S),Darwin) +@@ -161,16 +150,6 @@ curl: curl/curl/lib/.libs/libcurl.a libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a: @@ -100,10 +100,10 @@ index 47c0f3c3..80d33d11 100644 - cd libmicrohttpd && tar -zxf libmicrohttpd-0.9.75.tar.gz -# cd libmicrohttpd/libmicrohttpd && patch src/microhttpd/connection.c < ../connection.c-snprintf-overflow.patch -endif - ifeq ($(UNAME_S),Darwin) - cd libmicrohttpd/libmicrohttpd && patch src/microhttpd/mhd_sockets.c < ../mhd_sockets.c-issue-5977.patch - endif -@@ -171,8 +150,6 @@ cityhash: cityhash/cityhash/src/.libs/libcityhash.a + cd libmicrohttpd/libmicrohttpd && ./configure --enable-https && CC=${CC} CXX=${CXX} ${MAKE} + + microhttpd: libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a +@@ -186,8 +165,6 @@ cityhash: cityhash/cityhash/src/.libs/libcityhash.a lz4/lz4/lib/liblz4.a: @@ -112,7 +112,7 @@ index 47c0f3c3..80d33d11 100644 cd lz4/lz4 && CC=${CC} CXX=${CXX} ${MAKE} lz4: lz4/lz4/lib/liblz4.a -@@ -197,8 +174,6 @@ clickhouse-cpp: clickhouse-cpp/clickhouse-cpp/clickhouse/libclickhouse-cpp-lib-s +@@ -213,8 +190,6 @@ clickhouse-cpp: clickhouse-cpp/clickhouse-cpp/clickhouse/libclickhouse-cpp-lib-s libdaemon/libdaemon/libdaemon/.libs/libdaemon.a: @@ -121,7 +121,7 @@ index 47c0f3c3..80d33d11 100644 cd libdaemon/libdaemon && cp ../config.guess . && chmod +x config.guess && cp ../config.sub . && chmod +x config.sub && ./configure --disable-examples cd libdaemon/libdaemon && CC=${CC} CXX=${CXX} ${MAKE} -@@ -282,8 +257,6 @@ sqlite3: sqlite3/sqlite3/sqlite3.o +@@ -302,8 +277,6 @@ sqlite3: sqlite3/sqlite3/sqlite3.o libconfig/libconfig/lib/.libs/libconfig++.a: @@ -130,7 +130,7 @@ index 47c0f3c3..80d33d11 100644 cd libconfig/libconfig && ./configure --disable-examples cd libconfig/libconfig && CC=${CC} CXX=${CXX} ${MAKE} -@@ -291,9 +264,6 @@ libconfig: libconfig/libconfig/lib/.libs/libconfig++.a +@@ -311,9 +284,6 @@ libconfig: libconfig/libconfig/lib/.libs/libconfig++.a prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a: @@ -140,7 +140,7 @@ index 47c0f3c3..80d33d11 100644 cd prometheus-cpp/prometheus-cpp && patch -p1 < ../serial_exposer.patch cd prometheus-cpp/prometheus-cpp && patch -p1 < ../registry_counters_reset.patch cd prometheus-cpp/prometheus-cpp && patch -p1 < ../fix_old_distros.patch -@@ -304,10 +274,6 @@ prometheus-cpp: prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a +@@ -324,10 +294,6 @@ prometheus-cpp: prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a re2/re2/obj/libre2.a: @@ -151,7 +151,7 @@ index 47c0f3c3..80d33d11 100644 cd re2/re2 && patch re2/onepass.cc < ../onepass.cc-multiplication-overflow.patch ifeq ($(UNAME_S),Darwin) cd re2/re2 && sed -i '' -e 's/-O3 -g/-O3 -g -std=c++11 -fPIC -DMEMORY_SANITIZER -DRE2_ON_VALGRIND /' Makefile -@@ -322,8 +288,6 @@ re2: re2/re2/obj/libre2.a +@@ -342,8 +308,6 @@ re2: re2/re2/obj/libre2.a pcre/pcre/.libs/libpcre.a: |