Merge staging-next-23.05 into staging-23.05

This commit is contained in:
github-actions[bot]
2023-07-14 00:16:38 +00:00
committed by GitHub
11 changed files with 3186 additions and 670 deletions

View File

@@ -49,7 +49,7 @@ in
replication_mode = mkOption {
default = "none";
type = types.enum ([ "none" "1" "2" "3" 1 2 3 ]);
type = types.enum ([ "none" "1" "2" "3" "2-dangerous" "3-dangerous" "3-degraded" 1 2 3 ]);
apply = v: toString v;
description = lib.mdDoc "Garage replication mode, defaults to none, see: <https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#replication-mode> for reference.";
};
@@ -80,6 +80,7 @@ in
after = [ "network.target" "network-online.target" ];
wants = [ "network.target" "network-online.target" ];
wantedBy = [ "multi-user.target" ];
restartTriggers = [ configFile ];
serviceConfig = {
ExecStart = "${cfg.package}/bin/garage server";

View File

@@ -1,5 +1,23 @@
{ lib, stdenv, fetchurl, substituteAll, pkg-config, neon, libusb-compat-0_1, openssl, udev, avahi, freeipmi
, libtool, makeWrapper, autoreconfHook, fetchpatch
{ lib
, stdenv
, autoreconfHook
, avahi
, coreutils
, fetchurl
, freeipmi
, gd
, i2c-tools
, libmodbus
, libtool
, libusb1
, makeWrapper
, neon
, net-snmp
, openssl
, pkg-config
, substituteAll
, systemd
, udev
}:
stdenv.mkDerivation rec {
@@ -8,42 +26,50 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "https://networkupstools.org/source/${lib.versions.majorMinor version}/${pname}-${version}.tar.gz";
sha256 = "19r5dm07sfz495ckcgbfy0pasx0zy3faa0q7bih69lsjij8q43lq";
sha256 = "sha256-w+WnCNp5e3xwtlPTexIGoAD8tQO4VRn+TN9jU/eSv+U=";
};
patches = [
(fetchpatch {
# Fix build with openssl >= 1.1.0
url = "https://github.com/networkupstools/nut/commit/612c05efb3c3b243da603a3a050993281888b6e3.patch";
sha256 = "0jdbii1z5sqyv24286j5px65j7b3gp8zk3ahbph83pig6g46m3hs";
})
(substituteAll {
src = ./hardcode-paths.patch;
avahi = "${avahi}/lib";
freeipmi = "${freeipmi}/lib";
libusb = "${libusb-compat-0_1}/lib";
libusb = "${libusb1}/lib";
neon = "${neon}/lib";
libmodbus = "${libmodbus}/lib";
netsnmp = "${net-snmp.lib}/lib";
})
];
buildInputs = [ neon libusb-compat-0_1 openssl udev avahi freeipmi ];
buildInputs = [ neon libusb1 openssl udev avahi freeipmi libmodbus i2c-tools net-snmp gd ];
nativeBuildInputs = [ autoreconfHook libtool pkg-config makeWrapper ];
configureFlags =
[ "--with-all"
"--with-ssl"
"--without-snmp" # Until we have it ...
"--without-powerman" # Until we have it ...
"--without-cgi"
"--without-hal"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--with-systemdsystemunitdir=$(out)/lib/systemd/system"
"--with-systemdshutdowndir=$(out)/lib/systemd/system-shutdown"
"--with-systemdtmpfilesdir=$(out)/lib/tmpfiles.d"
"--with-udev-dir=$(out)/etc/udev"
];
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ];
postInstall = ''
substituteInPlace $out/lib/systemd/system-shutdown/nutshutdown \
--replace /bin/sleep "${coreutils}/bin/sleep" \
--replace /bin/systemctl "${systemd}/bin/systemctl"
for file in system/{nut-monitor.service,nut-driver-enumerator.service,nut-server.service,nut-driver@.service} system-shutdown/nutshutdown; do
substituteInPlace $out/lib/systemd/$file \
--replace "$out/etc/nut.conf" "/etc/nut.conf"
done
# we don't need init.d scripts
rm -r $out/share/solaris-init
'';
meta = with lib; {
description = "Network UPS Tools";

View File

@@ -1,13 +1,15 @@
--- a/tools/nut-scanner/nutscan-init.c
+++ b/tools/nut-scanner/nutscan-init.c
@@ -44,6 +44,10 @@ int nutscan_load_upsclient_library(const char *libname_path);
/* FIXME: would be good to get more from /etc/ld.so.conf[.d] */
char * search_paths[] = {
--- a/common/common.c
+++ b/common/common.c
@@ -991,6 +991,12 @@ ssize_t select_write(const int fd, const void *buf, const size_t buflen, const t
* communications media and/or vendor protocol.
*/
static const char * search_paths[] = {
+ "@avahi@",
+ "@freeipmi@",
+ "@libusb@",
+ "@neon@",
+ "@libmodbus@",
+ "@netsnmp@",
/* Use the library path (and bitness) provided during ./configure first */
LIBDIR,
"/usr/lib64",
"/lib64",
"/usr"LIBDIR,

View File

@@ -54,7 +54,7 @@
};
};
firefox-devedition = buildMozillaMach rec {
firefox-devedition = (buildMozillaMach rec {
pname = "firefox-devedition";
version = "116.0b3";
applicationName = "Mozilla Firefox Developer Edition";
@@ -81,7 +81,9 @@
versionSuffix = "b[0-9]*";
baseUrl = "https://archive.mozilla.org/pub/devedition/releases/";
};
};
}).overrideAttrs (prev: {
env.MOZ_REQUIRE_SIGNING = "";
});
firefox-esr-102 = buildMozillaMach rec {
pname = "firefox-esr-102";

View File

@@ -1,44 +0,0 @@
--- a/12-feature-linux-systray-example.patch
+++ b/12-feature-linux-systray-example.patch
@@ -8,18 +8,15 @@ diff --git a/third_party/appindicator/Makefile b/third_party/appindicator/Makefi
new file mode 100644
--- /dev/null
+++ b/third_party/appindicator/Makefile
-@@ -0,0 +1,34 @@
+@@ -0,0 +1,31 @@
+# Code from https://github.com/AyatanaIndicators/libayatana-appindicator
+# and related repositories.
+# See https://github.com/AyatanaIndicators/libayatana-appindicator/issues/46 for build instructions.
+# You need: sudo aptitude install libdbusmenu-gtk3-dev
+
-+CFLAGS=`pkg-config --cflags gtk+-3.0 glib-2.0` \
-+ -I/usr/include/libdbusmenu-glib-0.4/ \
-+ -I/usr/include/libdbusmenu-gtk3-0.4/ \
-+ -I/usr/include/glib-2.0
++CFLAGS=`pkg-config --cflags gtk+-3.0 glib-2.0 dbusmenu-gtk3-0.4` \
+
-+LDFLAGS=`pkg-config --libs gtk+-3.0 glib-2.0` -ldbusmenu-glib -ldbusmenu-gtk3
++LDFLAGS=`pkg-config --libs dbusmenu-gtk3-0.4`
+
+OBJECTS=betterbird-systray-icon.o \
+ app-indicator.o \
--- a/1790619-send-progress-width.patch
+++ b/1790619-send-progress-width.patch
@@ -31,6 +21,7 @@
scrolling="false">
<head>
<title>&sendDialog.title;</title>
+ <link rel="localization" href="branding/brand.ftl" />
+ <script defer="defer" src="chrome://messenger/content/dialogShadowDom.js"></script>
<script defer="defer" src="chrome://messenger/content/messengercompose/sendProgress.js"></script>
- <script defer="defer" src="chrome://messenger/content/dialogShadowDom.js"></script>
--- a/1777788-fix-dialog-size.patch
+++ b/1777788-fix-dialog-size.patch
@@ -22,6 +22,7 @@ diff --git a/mailnews/compose/content/sendProgress.xhtml b/mailnews/compose/cont
scrolling="false">
<head>
<title>&sendDialog.title;</title>
+ <link rel="localization" href="branding/brand.ftl" />
<script defer="defer" src="chrome://messenger/content/dialogShadowDom.js"></script>
<script defer="defer" src="chrome://messenger/content/messengercompose/sendProgress.js"></script>
</head>

View File

@@ -9,54 +9,60 @@
, thunderbird-unwrapped
}:
((buildMozillaMach rec {
let
version = "102.12.0";
majVer = lib.versions.major version;
betterbird-patches = fetchFromGitHub {
owner = "Betterbird";
repo = "thunderbird-patches";
rev = "${version}-bb37";
postFetch = ''
echo "Retrieving external patches"
echo "#!${runtimeShell}" > external.sh
# if no external patches need to be downloaded, don't fail
{ grep " # " $out/${majVer}/series-M-C || true ; } >> external.sh
{ grep " # " $out/${majVer}/series || true ; } >> external.sh
sed -i -e '/^#/d' external.sh
sed -i -e 's/\/rev\//\/raw-rev\//' external.sh
sed -i -e 's|\(.*\) # \(.*\)|curl \2 -o $out/${majVer}/external/\1|' external.sh
chmod 700 external.sh
mkdir $out/${majVer}/external
SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
. ./external.sh
rm external.sh
'';
sha256 = "sha256-LH0dgWqariutfaOCPIUZrHzZ8oCbZF1VaaKQIQS4aL8=";
};
in ((buildMozillaMach {
pname = "betterbird";
version = "102.8.0";
inherit version;
applicationName = "Betterbird";
binaryName = "betterbird";
inherit (thunderbird-unwrapped) application extraPatches;
src = fetchurl {
# https://download.cdn.mozilla.net/pub/mozilla.org/thunderbird/releases/
# https://download.cdn.mozilla.net/pub/thunderbird/releases/
url = "mirror://mozilla/thunderbird/releases/${version}/source/thunderbird-${version}.source.tar.xz";
sha512 = "2431eb8799184b261609c96bed3c9368bec9035a831aa5f744fa89e48aedb130385b268dd90f03bbddfec449dc3e5fad1b5f8727fe9e11e1d1f123a81b97ddf8";
sha512 = "303787a8f22a204e48784d54320d5f4adaeeeedbe4c2294cd26ad75792272ffc9453be7f0ab1434214b61a2cc46982c23c4fd447c4d80d588df4a7800225ddee";
};
extraPostPatch = let
majVer = lib.versions.major version;
betterbird = fetchFromGitHub {
owner = "Betterbird";
repo = "thunderbird-patches";
rev = "${version}-bb30";
postFetch = ''
echo "Retrieving external patches"
echo "#!${runtimeShell}" > external.sh
grep " # " $out/${majVer}/series-M-C >> external.sh
grep " # " $out/${majVer}/series >> external.sh
sed -i -e 's/\/rev\//\/raw-rev\//' external.sh
sed -i -e 's|\(.*\) # \(.*\)|curl \2 -o $out/${majVer}/external/\1|' external.sh
chmod 700 external.sh
mkdir $out/${majVer}/external
SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
. ./external.sh
rm external.sh
'';
sha256 = "sha256-ouJSFz/5shNR9puVjrZRJq90DHTeSx7hAnDpuhkBsDo=";
};
in thunderbird-unwrapped.extraPostPatch or "" + /* bash */ ''
extraPostPatch = thunderbird-unwrapped.extraPostPatch or "" + /* bash */ ''
PATH=$PATH:${lib.makeBinPath [ git ]}
patches=$(mktemp -d)
for dir in branding bugs external features misc; do
cp -r ${betterbird}/${majVer}/$dir/*.patch $patches/
cp -r ${betterbird-patches}/${majVer}/$dir/*.patch $patches/
# files is not in series file and duplicated with external patch
[[ $dir == bugs ]] && rm $patches/1820504-optimise-grapheme-m-c.patch
done
cp ${betterbird}/${majVer}/series* $patches/
cp ${betterbird-patches}/${majVer}/series* $patches/
chmod -R +w $patches
cd $patches
patch -p1 < ${./betterbird.diff}
# fix FHS paths to libdbusmenu
substituteInPlace 12-feature-linux-systray.patch \
--replace "/usr/include/libdbusmenu-glib-0.4/" "${lib.getDev libdbusmenu-gtk3}/include/libdbusmenu-glib-0.4/" \
--replace "/usr/include/libdbusmenu-gtk3-0.4/" "${lib.getDev libdbusmenu-gtk3}/include/libdbusmenu-gtk3-0.4/"
@@ -103,7 +109,7 @@
webrtcSupport = false;
pgoSupport = false; # console.warn: feeds: "downloadFeed: network connection unavailable"
}).overrideAttrs(oldAttrs: {
}).overrideAttrs (oldAttrs: {
postInstall = oldAttrs.postInstall or "" + ''
mv $out/lib/thunderbird/* $out/lib/betterbird
rmdir $out/lib/thunderbird/
@@ -112,5 +118,8 @@
'';
doInstallCheck = false;
requiredSystemFeatures = [];
passthru = oldAttrs.passthru // {
inherit betterbird-patches;
};
})

File diff suppressed because it is too large Load Diff

View File

@@ -31,9 +31,6 @@
# Checks meson.is_cross_build(), so even canExecute isn't enough.
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform && plugins == null
, hotdoc
# TODO: required for case-insensitivity hack below
, yq
, moreutils
}:
let
@@ -98,6 +95,8 @@ let
[
"csound" # tests have weird failure on x86, does not currently work on arm or darwin
"livesync" # tests have suspicious intermittent failure, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/357
] ++ lib.optionals stdenv.isAarch64 [
"raptorq" # pointer alignment failure in tests on aarch64
] ++ lib.optionals stdenv.isDarwin [
"reqwest" # tests hang on darwin
"threadshare" # tests cannot bind to localhost on darwin
@@ -118,7 +117,7 @@ in
stdenv.mkDerivation rec {
pname = "gst-plugins-rs";
version = "0.10.8";
version = "0.10.9";
outputs = [ "out" "dev" ];
@@ -127,14 +126,25 @@ stdenv.mkDerivation rec {
owner = "gstreamer";
repo = "gst-plugins-rs";
rev = version;
hash = "sha256-UxmfyqbQwkQjwHiARRpFJiGsrsNjv6V129lIHPk7gRk=";
hash = "sha256-pUvcPazg6/SsD7sqML2tb+ZVWDqO1MRIcj3CQioePZY=";
# TODO: temporary workaround for case-insensitivity problems with color-name crate - https://github.com/annymosse/color-name/pull/2
nativeBuildInputs = [ yq moreutils ];
postFetch = ''
tomlq --toml-output '.package |= map(if .name == "color-name"
then (.source = "git+https://github.com/lilyinstarlight/color-name#cac0ed5b7d2e0682c08c9bfd13089d5494e81b9a" | del(.checksum))
else .
end)' $out/Cargo.lock | sponge $out/Cargo.lock
sedSearch="$(cat <<\EOF | sed -ze 's/\n/\\n/g'
\[\[package\]\]
name = "color-name"
version = "\([^"\n]*\)"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "[^"\n]*"
EOF
)"
sedReplace="$(cat <<\EOF | sed -ze 's/\n/\\n/g'
[[package]]
name = "color-name"
version = "\1"
source = "git+https://github.com/lilyinstarlight/color-name#cac0ed5b7d2e0682c08c9bfd13089d5494e81b9a"
EOF
)"
sed -i -ze "s|$sedSearch|$sedReplace|g" $out/Cargo.lock
'';
};

View File

@@ -243,36 +243,36 @@ in
# see https://mariadb.org/about/#maintenance-policy for EOLs
mariadb_104 = self.callPackage generic {
# Supported until 2024-06-18
version = "10.4.29";
hash = "sha256-Wy0zh5LnnmjWpUXisVYDu792GMc55fgg9XsdayIJITA=";
version = "10.4.30";
hash = "sha256-/LvaZxxseEwDFQJiYj8NgYlMkRUz58PCdvJW8voSEAw=";
inherit (self.darwin) cctools;
inherit (self.darwin.apple_sdk.frameworks) CoreServices;
};
mariadb_105 = self.callPackage generic {
# Supported until 2025-06-24
version = "10.5.20";
hash = "sha256-sY+Q8NAR74e71VmtBDLN4Qfs21jqKCcQg7SJvf0e79s=";
version = "10.5.21";
hash = "sha256-yn63Mo4cAunZCxPfNpW3+ni9c92ZykniPjLWzImCIkI=";
inherit (self.darwin) cctools;
inherit (self.darwin.apple_sdk.frameworks) CoreServices;
};
mariadb_106 = self.callPackage generic {
# Supported until 2026-07-06
version = "10.6.13";
hash = "sha256-8IXzec9Z7S02VkT8XNhVj4gqiG7JZAcNZaKFMN27dbo=";
version = "10.6.14";
hash = "sha256-RQQ3x0qORMdrPAs0O5NH65AyAVRYUVZdeNmmJGdqsgI=";
inherit (self.darwin) cctools;
inherit (self.darwin.apple_sdk.frameworks) CoreServices;
};
mariadb_1010 = self.callPackage generic {
# Supported until 2023-11-17. TODO: remove ahead of 23.11 branchoff
version = "10.10.4";
hash = "sha256-IX2Z47Ami5MizyicGEMnqHiYs/aGvS6eS5JpXqYRixk=";
version = "10.10.5";
hash = "sha256-kc1NQm04rwmFLr2vAOdCEXdexsyQf3TBruDUXN9dmWs=";
inherit (self.darwin) cctools;
inherit (self.darwin.apple_sdk.frameworks) CoreServices;
};
mariadb_1011 = self.callPackage generic {
# Supported until 2028-02-16. TODO: make this the default, at some point
version = "10.11.3";
hash = "sha256-sGWw8ypun9R55Wb9ZnFFA3mIbY3aLZp++TCvHlwmwMc=";
# Supported until 2028-02-16
version = "10.11.4";
hash = "sha256-zo2sElVozF9A2nTBchJ2fJLY+u2BBmWAtSakhaWREn0=";
inherit (self.darwin) cctools;
inherit (self.darwin.apple_sdk.frameworks) CoreServices;
};

View File

@@ -9,14 +9,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "nix-update";
version = "0.17.2";
version = "0.19.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Mic92";
repo = pname;
rev = version;
hash = "sha256-W2vBKgdPOLGdAIxbHD4Qi4ivAabFSuu7ikvu5kItwN8=";
hash = "sha256-v58x48la837gbqMaQ6PEl9Ick1NH+Y4okf2yttDzqC4=";
};
makeWrapperArgs = [

View File

@@ -2,14 +2,14 @@
stdenv.mkDerivation rec {
pname = "mawk";
version = "1.3.4-20230203";
version = "1.3.4-20230525";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/mawk/mawk-${version}.tgz"
"https://invisible-mirror.net/archives/mawk/mawk-${version}.tgz"
];
sha256 = "sha256-bbejKsecURB60xpAfU+SxrhC3eL2inUztOe3sD6JAL4=";
sha256 = "sha256-VjnRS7kSQ3Oz1/lX0rklrYrZZW1GISw/I9vKgQzJJp8=";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];