Merge staging-next-21.05 into staging-21.05

This commit is contained in:
github-actions[bot] 2021-08-08 06:02:59 +00:00 committed by GitHub
commit 8c47337f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 83 additions and 16 deletions

View File

@ -2,6 +2,7 @@
, fetchurl, pkg-config, ncurses, gzip , fetchurl, pkg-config, ncurses, gzip
, sslSupport ? true, openssl ? null , sslSupport ? true, openssl ? null
, nukeReferences , nukeReferences
, fetchpatch
}: }:
assert sslSupport -> openssl != null; assert sslSupport -> openssl != null;
@ -22,6 +23,14 @@ stdenv.mkDerivation rec {
hardeningEnable = [ "pie" ]; hardeningEnable = [ "pie" ];
patches = [
(fetchpatch {
name = "CVE-2021-38165.patch";
url = "https://git.alpinelinux.org/aports/plain/main/lynx/CVE-2021-38165.patch?id=3400945dbbb8a87065360963e4caa0e17d3dcc61";
sha256 = "1aykb9y2g2vdpbbpvjlm4r40x7py2yv6jbywwcqcxrlciqcw4x57";
})
];
configureFlags = [ configureFlags = [
"--enable-default-colors" "--enable-default-colors"
"--enable-widec" "--enable-widec"

View File

@ -1,14 +1,45 @@
{ lib, mkDerivation, fetchFromGitHub, cmake { lib
, qtbase, qtmultimedia, qtx11extras, qttools, qtwebengine , mkDerivation
, libidn, qca-qt5, libXScrnSaver, hunspell , fetchFromGitHub
, libsecret, libgcrypt, libotr, html-tidy, libgpgerror, libsignal-protocol-c , cmake
, qtbase
, qtmultimedia
, qtx11extras
, qttools
, libidn
, qca-qt5
, libXScrnSaver
, hunspell
, libsecret
, libgcrypt
, libotr
, html-tidy
, libgpgerror
, libsignal-protocol-c
, usrsctp , usrsctp
, chatType ? "basic" # See the assertion below for available options
, qtwebkit
, qtwebengine
, enablePlugins ? true
# Voice messages # Voice messages
, voiceMessagesSupport ? true , voiceMessagesSupport ? true
, gst_all_1 , gst_all_1
, enablePsiMedia ? false
, pkg-config
}: }:
assert builtins.elem (lib.toLower chatType) [
"basic" # Basic implementation, no web stuff involved
"webkit" # Legacy one, based on WebKit (see https://wiki.qt.io/Qt_WebKit)
"webengine" # QtWebEngine (see https://wiki.qt.io/QtWebEngine)
];
assert enablePsiMedia -> enablePlugins;
mkDerivation rec { mkDerivation rec {
pname = "psi-plus"; pname = "psi-plus";
version = "1.5.1520"; version = "1.5.1520";
@ -21,19 +52,40 @@ mkDerivation rec {
}; };
cmakeFlags = [ cmakeFlags = [
"-DENABLE_PLUGINS=ON" "-DCHAT_TYPE=${chatType}"
"-DENABLE_PLUGINS=${if enablePlugins then "ON" else "OFF"}"
"-DBUILD_PSIMEDIA=${if enablePsiMedia then "ON" else "OFF"}"
]; ];
nativeBuildInputs = [ cmake qttools ]; nativeBuildInputs = [
cmake
qttools
] ++ lib.optionals enablePsiMedia [
pkg-config
];
buildInputs = [ buildInputs = [
qtbase qtmultimedia qtx11extras qtwebengine qtbase
libidn qca-qt5 libXScrnSaver hunspell qtmultimedia
libsecret libgcrypt libotr html-tidy libgpgerror libsignal-protocol-c qtx11extras
libidn
qca-qt5
libXScrnSaver
hunspell
libsecret
libgcrypt
libotr
html-tidy
libgpgerror
libsignal-protocol-c
usrsctp usrsctp
] ++ lib.optionals voiceMessagesSupport [ ] ++ lib.optionals voiceMessagesSupport [
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-good
] ++ lib.optionals (chatType == "webkit") [
qtwebkit
] ++ lib.optionals (chatType == "webengine") [
qtwebengine
]; ];
preFixup = lib.optionalString voiceMessagesSupport '' preFixup = lib.optionalString voiceMessagesSupport ''

View File

@ -46,11 +46,17 @@ installPhase() {
fi fi
# Install systemd power management executables # Install systemd power management executables
if [ -e systemd/nvidia-sleep.sh ]; then
mv systemd/nvidia-sleep.sh ./
fi
if [ -e nvidia-sleep.sh ]; then if [ -e nvidia-sleep.sh ]; then
sed -E 's#(PATH=).*#\1"$PATH"#' nvidia-sleep.sh > nvidia-sleep.sh.fixed sed -E 's#(PATH=).*#\1"$PATH"#' nvidia-sleep.sh > nvidia-sleep.sh.fixed
install -Dm755 nvidia-sleep.sh.fixed $out/bin/nvidia-sleep.sh install -Dm755 nvidia-sleep.sh.fixed $out/bin/nvidia-sleep.sh
fi fi
if [ -e systemd/system-sleep/nvidia ]; then
mv systemd/system-sleep/nvidia ./
fi
if [ -e nvidia ]; then if [ -e nvidia ]; then
sed -E "s#/usr(/bin/nvidia-sleep.sh)#$out\\1#" nvidia > nvidia.fixed sed -E "s#/usr(/bin/nvidia-sleep.sh)#$out\\1#" nvidia > nvidia.fixed
install -Dm755 nvidia.fixed $out/lib/systemd/system-sleep/nvidia install -Dm755 nvidia.fixed $out/lib/systemd/system-sleep/nvidia

View File

@ -19,10 +19,10 @@ rec {
# Policy: use the highest stable version as the default (on our master). # Policy: use the highest stable version as the default (on our master).
stable = if stdenv.hostPlatform.system == "x86_64-linux" stable = if stdenv.hostPlatform.system == "x86_64-linux"
then generic { then generic {
version = "460.73.01"; version = "470.57.02";
sha256_64bit = "120ymf59l6nipczszf82lrm2p4ihhqyv2pfwwfg9wy96vqcckc8i"; sha256_64bit = "sha256-VdeuEEgn+qeel1Mh/itg+d1C+/9lZCBTRDwOVv20xH0=";
settingsSha256 = "08jh7g34p9yxv5fh1cw0r2pjx65ryiv3w2lk1qg0gxn2r7xypkx0"; settingsSha256 = "sha256-DJg5QbyuKJmPpLQVYgTLvucI1e9YgQOO16690VXIWvk=";
persistencedSha256 = "040gx4wqp3hxcfb4aba4sl7b01ixr5slhzw0xldwcqlmhpwqphi5"; persistencedSha256 = "sha256-Cqv6oUFnsSi3S1sjplJKeq9bI2pqgBXPPb11HOJSlDo=";
} }
else legacy_390; else legacy_390;

View File

@ -9,11 +9,11 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "blueman"; pname = "blueman";
version = "2.2.1"; version = "2.2.2";
src = fetchurl { src = fetchurl {
url = "https://github.com/blueman-project/blueman/releases/download/${version}/${pname}-${version}.tar.xz"; url = "https://github.com/blueman-project/blueman/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "0whs1bqnn1fgzrq7y2w1d06ldvfafq6h2xzmcfncbwmyb4i0mhgw"; sha256 = "sha256-Ge1ZsaE09YT8AF9HKV/vZAqXCf2bmyMHOI4RKjLs0PY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [