Merge branch 'master' into staging-next

Thousands of rebuilds from master (not sure why).
This commit is contained in:
Vladimír Čunát 2020-07-11 16:40:46 +02:00
commit ec74a02bde
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
19 changed files with 83 additions and 72 deletions

View file

@ -302,7 +302,7 @@ let
checkDhcpV6 = checkUnitConfig "DHCPv6" [ checkDhcpV6 = checkUnitConfig "DHCPv6" [
(assertOnlyFields [ (assertOnlyFields [
"UseDns" "UseNTP" "RapidCommit" "ForceDHCPv6PDOtherInformation" "UseDNS" "UseNTP" "RapidCommit" "ForceDHCPv6PDOtherInformation"
"PrefixDelegationHint" "PrefixDelegationHint"
]) ])
(assertValueOneOf "UseDNS" boolValues) (assertValueOneOf "UseDNS" boolValues)

View file

@ -3,12 +3,12 @@
}: }:
mkDerivation rec { mkDerivation rec {
version = "2.3.5.1"; version = "2.3.5.2";
pname = "lyx"; pname = "lyx";
src = fetchurl { src = fetchurl {
url = "ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${pname}-${version}.tar.xz"; url = "ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${pname}-${version}.tar.xz";
sha256 = "0mv32s26igm0pd8vs7d2mk1240dpr83y0a2wyh3xz6b67ph0w157"; sha256 = "1pwdh0ljd7lm5a83vsqmp4695irhig07wxa90jc23ng5gap589na";
}; };
# LaTeX is used from $PATH, as people often want to have it with extra pkgs # LaTeX is used from $PATH, as people often want to have it with extra pkgs

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "masterpdfeditor"; pname = "masterpdfeditor";
version = "5.4.38"; version = "5.6.09";
src = fetchurl { src = fetchurl {
url = "https://code-industry.net/public/master-pdf-editor-${version}-qt5.amd64.tar.gz"; url = "https://code-industry.net/public/master-pdf-editor-${version}-qt5.amd64.tar.gz";
sha256 = "0fidy8gd4mqvyfgmrwdiz8z53dyzihqqhgfrffj0z0idm2zi4mcq"; sha256 = "0v9j6fwr0xl03kr77vf4wdb06zlplmn4mr3jyzxhvs8a77scmfzb";
}; };
nativeBuildInputs = [ autoPatchelfHook wrapQtAppsHook ]; nativeBuildInputs = [ autoPatchelfHook wrapQtAppsHook ];

View file

@ -47,6 +47,7 @@
, gnupg , gnupg
, ffmpeg_3 , ffmpeg_3
, runtimeShell , runtimeShell
, mesa # firefox wants gbm for drm+dmabuf
, systemLocale ? config.i18n.defaultLocale or "en-US" , systemLocale ? config.i18n.defaultLocale or "en-US"
}: }:
@ -106,6 +107,7 @@ stdenv.mkDerivation {
gtk2 gtk2
gtk3 gtk3
kerberos kerberos
mesa
libX11 libX11
libXScrnSaver libXScrnSaver
libXcomposite libXcomposite

View file

@ -10,6 +10,7 @@
, udev , udev
, kerberos , kerberos
, libva , libva
, mesa # firefox wants gbm for drm+dmabuf
}: }:
## configurability of the wrapper itself ## configurability of the wrapper itself
@ -26,11 +27,12 @@ let
, nameSuffix ? "" , nameSuffix ? ""
, icon ? browserName , icon ? browserName
, extraNativeMessagingHosts ? [] , extraNativeMessagingHosts ? []
, gdkWayland ? false , forceWayland ? false
, useGlvnd ? true
, cfg ? config.${browserName} or {} , cfg ? config.${browserName} or {}
}: }:
assert gdkWayland -> (browser ? gtk3); # Can only use the wayland backend if gtk3 is being used assert forceWayland -> (browser ? gtk3); # Can only use the wayland backend if gtk3 is being used
let let
enableAdobeFlash = cfg.enableAdobeFlash or false; enableAdobeFlash = cfg.enableAdobeFlash or false;
@ -65,10 +67,10 @@ let
++ lib.optional (cfg.enableFXCastBridge or false) fx_cast_bridge ++ lib.optional (cfg.enableFXCastBridge or false) fx_cast_bridge
++ extraNativeMessagingHosts ++ extraNativeMessagingHosts
); );
libs = lib.optionals stdenv.isLinux [ udev libva ] libs = lib.optionals stdenv.isLinux [ udev libva mesa ]
++ lib.optional ffmpegSupport ffmpeg ++ lib.optional ffmpegSupport ffmpeg
++ lib.optional gssSupport kerberos ++ lib.optional gssSupport kerberos
++ lib.optional gdkWayland libglvnd ++ lib.optional useGlvnd libglvnd
++ lib.optionals (cfg.enableQuakeLive or false) ++ lib.optionals (cfg.enableQuakeLive or false)
(with xorg; [ stdenv.cc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]) (with xorg; [ stdenv.cc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ])
++ lib.optional (enableAdobeFlash && (cfg.enableAdobeFlashDRM or false)) hal-flash ++ lib.optional (enableAdobeFlash && (cfg.enableAdobeFlashDRM or false)) hal-flash
@ -83,7 +85,7 @@ let
exec = "${browserName}${nameSuffix} %U"; exec = "${browserName}${nameSuffix} %U";
inherit icon; inherit icon;
comment = ""; comment = "";
desktopName = "${desktopName}${nameSuffix}${lib.optionalString gdkWayland " (Wayland)"}"; desktopName = "${desktopName}${nameSuffix}${lib.optionalString forceWayland " (Wayland)"}";
genericName = "Web Browser"; genericName = "Web Browser";
categories = "Network;WebBrowser;"; categories = "Network;WebBrowser;";
mimeType = stdenv.lib.concatStringsSep ";" [ mimeType = stdenv.lib.concatStringsSep ";" [
@ -124,8 +126,8 @@ let
--set SNAP_NAME "firefox" \ --set SNAP_NAME "firefox" \
--set MOZ_LEGACY_PROFILES 1 \ --set MOZ_LEGACY_PROFILES 1 \
--set MOZ_ALLOW_DOWNGRADE 1 \ --set MOZ_ALLOW_DOWNGRADE 1 \
${lib.optionalString gdkWayland '' ${lib.optionalString forceWayland ''
--set GDK_BACKEND "wayland" \ --set MOZ_ENABLE_WAYLAND "1" \
''}${lib.optionalString (browser ? gtk3) ''}${lib.optionalString (browser ? gtk3)
''--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \ ''--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
--suffix XDG_DATA_DIRS : '${gnome3.adwaita-icon-theme}/share' --suffix XDG_DATA_DIRS : '${gnome3.adwaita-icon-theme}/share'

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gtkwave"; pname = "gtkwave";
version = "3.3.104"; version = "3.3.105";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/gtkwave/${pname}-gtk3-${version}.tar.gz"; url = "mirror://sourceforge/gtkwave/${pname}-gtk3-${version}.tar.gz";
sha256 = "1qvldbnlp3wkqr5ff93f6pdvv9yzij7lxfhpqlizakz08l1xb391"; sha256 = "1vifgyhwqhpipnzmsivncawqjqihcm5kyg3yyygmd0lmgljy9rs4";
}; };
nativeBuildInputs = [ pkgconfig wrapGAppsHook ]; nativeBuildInputs = [ pkgconfig wrapGAppsHook ];

View file

@ -1,4 +1,4 @@
{ lib, buildFHSUserEnv }: { lib, buildFHSUserEnv, fetchFromGitHub }:
let let
pio-pkgs = pkgs: pio-pkgs = pkgs:
@ -19,6 +19,14 @@ let
platformio platformio
]); ]);
src = fetchFromGitHub {
owner = "platformio";
repo = "platformio-core";
rev = "v4.3.4";
sha256 = "0vf2j79319ypr4yrdmx84853igkb188sjfvlxgw06rlsvsm3kacq";
};
in buildFHSUserEnv { in buildFHSUserEnv {
name = "platformio"; name = "platformio";
@ -34,7 +42,10 @@ in buildFHSUserEnv {
}; };
extraInstallCommands = '' extraInstallCommands = ''
mkdir -p $out/lib/udev/rules.d
ln -s $out/bin/platformio $out/bin/pio ln -s $out/bin/platformio $out/bin/pio
ln -s ${src}/scripts/99-platformio-udev.rules $out/lib/udev/rules.d/99-platformio-udev.rules
''; '';
runScript = "platformio"; runScript = "platformio";

View file

@ -82,6 +82,7 @@ in buildPythonApplication rec {
patches = [ patches = [
./fix-searchpath.patch ./fix-searchpath.patch
./use-local-spdx-license-list.patch ./use-local-spdx-license-list.patch
./missing-udev-rules-nixos.patch
]; ];
postPatch = '' postPatch = ''

View file

@ -0,0 +1,14 @@
diff --git a/platformio/exception.py b/platformio/exception.py
index d291ad7f..4761a35b 100644
--- a/platformio/exception.py
+++ b/platformio/exception.py
@@ -195,7 +195,8 @@ class MissedUdevRules(InvalidUdevRules):
MESSAGE = (
"Warning! Please install `99-platformio-udev.rules`. \nMode details: "
- "https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules"
+ "https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules\n"
+ "On NixOS add the platformio package to services.udev.packages"
)

View file

@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "1jb30zxmw7h9qxa8yi76rfxj4ssk60rv8n9y41m6pzqfk9lwis0y"; sha256 = "1jb30zxmw7h9qxa8yi76rfxj4ssk60rv8n9y41m6pzqfk9lwis0y";
}; };
buildInputs = stdenv.lib.optional stdenv.isLinux libunwind; # tcmalloc uses libunwind in a way that works correctly only on non-ARM linux
buildInputs = stdenv.lib.optional (stdenv.isLinux && !(stdenv.isAarch64 || stdenv.isAarch32)) libunwind;
prePatch = stdenv.lib.optionalString stdenv.isDarwin '' prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.am --replace stdc++ c++ substituteInPlace Makefile.am --replace stdc++ c++

View file

@ -18,7 +18,7 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.6.13"; version = "0.6.17";
pname = "msrest"; pname = "msrest";
# no tests in PyPI tarball # no tests in PyPI tarball
@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "Azure"; owner = "Azure";
repo = "msrest-for-python"; repo = "msrest-for-python";
rev = "v${version}"; rev = "v${version}";
sha256 = "1s34xp6wgas17mbg6ysciqlgb3qc2p2d5bs9brwr05ys62l6y8cz"; sha256 = "1f1cpl5x7q0f9lpwxc1pl9j5x5yrksfizl9k939iqklf95ssymff";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -12,7 +12,7 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.6.3"; version = "0.6.4";
pname = "msrestazure"; pname = "msrestazure";
# Pypi tarball doesnt include tests # Pypi tarball doesnt include tests
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "Azure"; owner = "Azure";
repo = "msrestazure-for-python"; repo = "msrestazure-for-python";
rev = "v${version}"; rev = "v${version}";
sha256 = "0pd3qw96c9fz4qgimnc0qf0pz7m9rr1wzhxj8m792swaf3pb18z8"; sha256 = "0ik81f0n6r27f02gblgm0vl5zl3wc6ijsscihgvc1fgm9f5mk5b5";
}; };
propagatedBuildInputs = [ adal msrest ]; propagatedBuildInputs = [ adal msrest ];

View file

@ -1,9 +1,7 @@
{ stdenv { stdenv
, pythonAtLeast
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27 , isPy27
, fetchpatch
, click , click
, click-log , click-log
, click-threading , click-threading
@ -11,25 +9,21 @@
, requests , requests
, requests_oauthlib # required for google oauth sync , requests_oauthlib # required for google oauth sync
, atomicwrites , atomicwrites
, milksnake
, shippai
, hypothesis , hypothesis
, pytest , pytestCheckHook
, pytest-localserver , pytest-localserver
, pytest-subtesthack , pytest-subtesthack
, setuptools_scm , setuptools_scm
}: }:
# Packaging documentation at:
# https://github.com/pimutils/vdirsyncer/blob/0.16.7/docs/packaging.rst
buildPythonPackage rec { buildPythonPackage rec {
version = "0.16.7"; version = "0.16.8";
pname = "vdirsyncer"; pname = "vdirsyncer";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "6c9bcfb9bcb01246c83ba6f8551cf54c58af3323210755485fc23bb7848512ef"; sha256 = "bfdb422f52e1d4d60bd0635d203fb59fa7f613397d079661eb48e79464ba13c5";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -46,43 +40,25 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
hypothesis hypothesis
pytest pytestCheckHook
pytest-localserver pytest-localserver
pytest-subtesthack pytest-subtesthack
]; ];
patches = [
# Fixes for hypothesis: https://github.com/pimutils/vdirsyncer/pull/779
(fetchpatch {
url = "https://github.com/pimutils/vdirsyncer/commit/22ad88a6b18b0979c5d1f1d610c1d2f8f87f4b89.patch";
sha256 = "0dbzj6jlxhdidnm3i21a758z83sdiwzhpd45pbkhycfhgmqmhjpl";
})
];
postPatch = '' postPatch = ''
# Invalid argument: 'perform_health_check' is not a valid setting substituteInPlace setup.py --replace "click>=5.0,<6.0" "click"
substituteInPlace tests/conftest.py \
--replace "perform_health_check=False" ""
substituteInPlace tests/unit/test_repair.py \
--replace $'@settings(perform_health_check=False) # Using the random module for UIDs\n' ""
''; '';
checkPhase = '' preCheck = ''
make DETERMINISTIC_TESTS=true PYTEST_ARGS="--deselect=tests/system/cli/test_sync.py::test_verbosity" test export DETERMINISTIC_TESTS=true
''; '';
# Tests started to fail lately, for any python version even as low as 3.5 but
# if you enable the check, you'll see even severer errors with a higher then disabledTests = [ "test_verbosity" ];
# 3.5 python version. Hence it's marked as broken for higher then 3.5 and the
# checks are disabled unconditionally. As a general end user advice, use the
# normal "unstable" `vdirsyncer` derivation, not this one.
doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://github.com/pimutils/vdirsyncer"; homepage = "https://github.com/pimutils/vdirsyncer";
description = "Synchronize calendars and contacts"; description = "Synchronize calendars and contacts";
license = licenses.mit; license = licenses.mit;
# vdirsyncer (unstable) works with mainline python versions
broken = (pythonAtLeast "3.6");
maintainers = with maintainers; [ loewenheim ]; maintainers = with maintainers; [ loewenheim ];
}; };
} }

View file

@ -2,10 +2,10 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "smemstat"; pname = "smemstat";
version = "0.02.07"; version = "0.02.08";
src = fetchurl { src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz"; url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
sha256 = "09i5n1zjw45qrfbc2vglh1xk1jwqnc91bgsq7bkp29d9dpfpzhdc"; sha256 = "1agigvkv1868cskivzrwyiixl658x5bv7xpz4xjc8mlii4maivpp";
}; };
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
installFlags = [ "DESTDIR=$(out)" ]; installFlags = [ "DESTDIR=$(out)" ];

View file

@ -102,6 +102,13 @@ in stdenv.mkDerivation rec {
rm -f "$out/bin/install_compass" || true rm -f "$out/bin/install_compass" || true
''; '';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
"$out/bin/mongo" --version
runHook postInstallCheck
'';
prefixKey = "--prefix="; prefixKey = "--prefix=";
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -30,10 +30,6 @@ stdenv.mkDerivation rec {
python3Packages.pexpect python3Packages.pexpect
python3Packages.pytest python3Packages.pytest
bashInteractive bashInteractive
# use xdist to speed up the test run, just like upstream:
# https://github.com/scop/bash-completion/blob/009bf2228c68894629eb6fd17b3dc0f1f6d67615/test/requirements.txt#L4
python3Packages.pytest_xdist
]; ];
# - ignore test_gcc on ARM because it assumes -march=native # - ignore test_gcc on ARM because it assumes -march=native
@ -44,7 +40,7 @@ stdenv.mkDerivation rec {
# - ignore test_ls because impure logic # - ignore test_ls because impure logic
# - ignore test_screen because it assumes vt terminals exist # - ignore test_screen because it assumes vt terminals exist
checkPhase = '' checkPhase = ''
pytest -n $NIX_BUILD_CORES . \ pytest . \
${stdenv.lib.optionalString (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32) "--ignore=test/t/test_gcc.py"} \ ${stdenv.lib.optionalString (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32) "--ignore=test/t/test_gcc.py"} \
--ignore=test/t/test_chsh.py \ --ignore=test/t/test_chsh.py \
--ignore=test/t/test_ether_wake.py \ --ignore=test/t/test_ether_wake.py \

View file

@ -1,17 +1,17 @@
{ stdenv, fetchurl, cmake }: { stdenv, fetchFromGitLab, cmake }:
let stdenv.mkDerivation rec {
version = "0.1.0"; pname = "caps2esc";
pname = "interception-tools-caps2esc"; version = "0.1.3";
in stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl { src = fetchFromGitLab {
url = "https://gitlab.com/interception/linux/plugins/caps2esc/repository/v${version}/archive.tar.gz"; owner = "interception/linux/plugins";
sha256 = "1fdxqp54gwsrm2c63168l256nfwdk4mvgr7nlwdv62wd3l7zzrg8"; repo = pname;
rev = "v${version}";
sha256 = "10xv56vh5h3lxyii3ni166ddv1sz2pylrjmdwxhb4gd2p5zgl1ji";
}; };
buildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://gitlab.com/interception/linux/plugins/caps2esc"; homepage = "https://gitlab.com/interception/linux/plugins/caps2esc";

View file

@ -1,4 +1,4 @@
{ coreutils, fetchFromGitHub, libcaca, makeWrapper, python, openssl, qrencode, stdenv, yubikey-manager }: { coreutils, fetchFromGitHub, file, libcaca, makeWrapper, python, openssl, qrencode, stdenv, yubikey-manager }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gen-oath-safe"; pname = "gen-oath-safe";
@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
let let
path = stdenv.lib.makeBinPath [ path = stdenv.lib.makeBinPath [
coreutils coreutils
file
libcaca.bin libcaca.bin
openssl.bin openssl.bin
python python

View file

@ -19925,7 +19925,7 @@ in
firefox-unwrapped = firefoxPackages.firefox; firefox-unwrapped = firefoxPackages.firefox;
firefox-esr-68-unwrapped = firefoxPackages.firefox-esr-68; firefox-esr-68-unwrapped = firefoxPackages.firefox-esr-68;
firefox = wrapFirefox firefox-unwrapped { }; firefox = wrapFirefox firefox-unwrapped { };
firefox-wayland = wrapFirefox firefox-unwrapped { gdkWayland = true; }; firefox-wayland = wrapFirefox firefox-unwrapped { forceWayland = true; };
firefox-esr-68 = wrapFirefox firefox-esr-68-unwrapped { }; firefox-esr-68 = wrapFirefox firefox-esr-68-unwrapped { };
firefox-esr = firefox-esr-68; firefox-esr = firefox-esr-68;