Merge master into staging-next

authored by github-actions[bot] and committed by GitHub 74956848 4669316d

+266 -87
-1
nixos/modules/services/networking/networkmanager.nix
··· 527 527 528 528 { 529 529 networkmanager.connectionConfig = { 530 - "ipv6.ip6-privacy" = 2; 531 530 "ethernet.cloned-mac-address" = cfg.ethernet.macAddress; 532 531 "wifi.cloned-mac-address" = cfg.wifi.macAddress; 533 532 "wifi.powersave" =
+2
nixos/modules/tasks/network-interfaces.nix
··· 1233 1233 "net.ipv4.conf.all.forwarding" = mkDefault (any (i: i.proxyARP) interfaces); 1234 1234 "net.ipv6.conf.all.disable_ipv6" = mkDefault (!cfg.enableIPv6); 1235 1235 "net.ipv6.conf.default.disable_ipv6" = mkDefault (!cfg.enableIPv6); 1236 + # networkmanager falls back to "/proc/sys/net/ipv6/conf/default/use_tempaddr" 1237 + "net.ipv6.conf.default.use_tempaddr" = tempaddrValues.${cfg.tempAddresses}.sysctl; 1236 1238 } // listToAttrs (flip concatMap (filter (i: i.proxyARP) interfaces) 1237 1239 (i: [(nameValuePair "net.ipv4.conf.${replaceChars ["."] ["/"] i.name}.proxy_arp" true)])) 1238 1240 // listToAttrs (forEach interfaces
+1 -1
nixos/modules/virtualisation/qemu-vm.nix
··· 845 845 ''-append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo}/registration ${consoles} $QEMU_KERNEL_PARAMS"'' 846 846 ]) 847 847 (mkIf cfg.useEFIBoot [ 848 - "-drive if=pflash,format=raw,unit=0,readonly,file=${efiFirmware}" 848 + "-drive if=pflash,format=raw,unit=0,readonly=on,file=${efiFirmware}" 849 849 "-drive if=pflash,format=raw,unit=1,file=$NIX_EFI_VARS" 850 850 ]) 851 851 (mkIf (cfg.bios != null) [
+2
pkgs/applications/networking/irc/catgirl/default.nix
··· 23 23 buildInputs = [ libressl ncurses ]; 24 24 strictDeps = true; 25 25 26 + enableParallelBuilding = true; 27 + 26 28 meta = with lib; { 27 29 homepage = "https://git.causal.agency/catgirl/about/"; 28 30 license = licenses.gpl3Plus;
+72 -42
pkgs/applications/version-management/bcompare/default.nix
··· 1 - { autoPatchelfHook, bzip2, cairo, coreutils, fetchurl, gdk-pixbuf, pango, gtk2, kcoreaddons, ki18n, kio, kservice, lib, qt4, qtbase, stdenv, runtimeShell }: 1 + { lib, autoPatchelfHook, bzip2, cairo, coreutils, fetchurl, gdk-pixbuf, glibc, pango, gtk2, kcoreaddons, ki18n, kio, kservice 2 + , stdenv, runtimeShell, unzip 3 + }: 2 4 3 - stdenv.mkDerivation rec { 5 + let 4 6 pname = "bcompare"; 5 7 version = "4.4.0.25886"; 6 8 7 - src = fetchurl { 8 - url = "https://www.scootersoftware.com/${pname}-${version}_amd64.deb"; 9 - sha256 = "sha256-zQZrCjXzoOZ5o5M4t1n5/HhGoGTcZSj5rlf9Uz9UZko="; 9 + throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}"; 10 + 11 + srcs = { 12 + x86_64-linux = fetchurl { 13 + url = "https://www.scootersoftware.com/${pname}-${version}_amd64.deb"; 14 + sha256 = "sha256-zQZrCjXzoOZ5o5M4t1n5/HhGoGTcZSj5rlf9Uz9UZko="; 15 + }; 16 + 17 + x86_64-darwin = fetchurl { 18 + url = "https://www.scootersoftware.com/BCompareOSX-${version}.zip"; 19 + sha256 = "sha256-dez30a1sp+4XuBBYhu07Vpn1+AUmX0Ni7aad7hy2ajQ="; 20 + }; 21 + 22 + aarch64-darwin = srcs.x86_64-darwin; 10 23 }; 11 24 12 - unpackPhase = '' 13 - ar x $src 14 - tar xfz data.tar.gz 15 - ''; 25 + src = srcs.${stdenv.hostPlatform.system} or throwSystem; 16 26 17 - installPhase = '' 18 - mkdir -p $out/bin $out/lib $out/share 19 - cp -R usr/share $out/ 20 - cp -R usr/lib $out/ 21 - cp -R usr/bin $out/ 27 + linux = stdenv.mkDerivation { 28 + inherit pname version src meta; 29 + unpackPhase = '' 30 + ar x $src 31 + tar xfz data.tar.gz 32 + ''; 22 33 23 - # Remove library that refuses to be autoPatchelf'ed 24 - rm $out/lib/beyondcompare/ext/bcompare_ext_kde.amd64.so 34 + installPhase = '' 35 + mkdir -p $out/{bin,lib,share} 25 36 26 - substituteInPlace $out/bin/bcompare \ 27 - --replace "/usr/lib/beyondcompare" "$out/lib/beyondcompare" \ 28 - --replace "/bin/bash" "${runtimeShell}" 37 + cp -R usr/{bin,lib,share} $out/ 29 38 30 - # Create symlink bzip2 library 31 - ln -s ${bzip2.out}/lib/libbz2.so.1 $out/lib/beyondcompare/libbz2.so.1.0 32 - ''; 39 + # Remove library that refuses to be autoPatchelf'ed 40 + rm $out/lib/beyondcompare/ext/bcompare_ext_kde.amd64.so 33 41 34 - nativeBuildInputs = [ autoPatchelfHook ]; 42 + substituteInPlace $out/bin/${pname} \ 43 + --replace "/usr/lib/beyondcompare" "$out/lib/beyondcompare" \ 44 + --replace "ldd" "${glibc.out}/bin/ldd" \ 45 + --replace "/bin/bash" "${runtimeShell}" 35 46 36 - buildInputs = [ 37 - stdenv.cc.cc.lib 38 - gtk2 39 - pango 40 - cairo 41 - kio 42 - kservice 43 - ki18n 44 - kcoreaddons 45 - gdk-pixbuf 46 - bzip2 47 - ]; 47 + # Create symlink bzip2 library 48 + ln -s ${bzip2.out}/lib/libbz2.so.1 $out/lib/beyondcompare/libbz2.so.1.0 49 + ''; 50 + 51 + nativeBuildInputs = [ autoPatchelfHook ]; 52 + 53 + buildInputs = [ 54 + stdenv.cc.cc.lib 55 + gtk2 56 + pango 57 + cairo 58 + kio 59 + kservice 60 + ki18n 61 + kcoreaddons 62 + gdk-pixbuf 63 + bzip2 64 + ]; 65 + 66 + dontBuild = true; 67 + dontConfigure = true; 68 + dontWrapQtApps = true; 69 + }; 70 + 71 + darwin = stdenv.mkDerivation { 72 + inherit pname version src meta; 73 + nativeBuildInputs = [ unzip ]; 48 74 49 - dontBuild = true; 50 - dontConfigure = true; 51 - dontWrapQtApps = true; 75 + installPhase = '' 76 + mkdir -p $out/Applications/BCompare.app 77 + cp -R . $out/Applications/BCompare.app 78 + ''; 79 + }; 52 80 53 81 meta = with lib; { 54 82 description = "GUI application that allows to quickly and easily compare files and folders"; ··· 59 87 ''; 60 88 homepage = "https://www.scootersoftware.com"; 61 89 license = licenses.unfree; 62 - maintainers = [ maintainers.ktor ]; 63 - platforms = [ "x86_64-linux" ]; 90 + maintainers = with maintainers; [ ktor arkivm ]; 91 + platforms = builtins.attrNames srcs; 64 92 }; 65 - 66 - } 93 + in 94 + if stdenv.isDarwin 95 + then darwin 96 + else linux
+2 -4
pkgs/development/libraries/cogl/default.nix
··· 3 3 , mesa, automake, autoconf 4 4 , gstreamerSupport ? true, gst_all_1 }: 5 5 6 - let 6 + stdenv.mkDerivation rec { 7 7 pname = "cogl"; 8 - in stdenv.mkDerivation rec { 9 - name = "${pname}-${version}"; 10 8 version = "1.22.8"; 11 9 12 10 src = fetchurl { 13 - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz"; 11 + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/cogl-${version}.tar.xz"; 14 12 sha256 = "0nfph4ai60ncdx7hy6hl1i1cmp761jgnyjfhagzi0iqq36qb41d8"; 15 13 }; 16 14
+59
pkgs/development/python-modules/devolo-plc-api/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , httpx 5 + , protobuf 6 + , pytest-asyncio 7 + , pytest-httpx 8 + , pytest-mock 9 + , pytestCheckHook 10 + , pythonOlder 11 + , setuptools-scm 12 + , zeroconf 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "devolo-plc-api"; 17 + version = "0.6.3"; 18 + format = "setuptools"; 19 + 20 + disabled = pythonOlder "3.8"; 21 + 22 + src = fetchFromGitHub { 23 + owner = "2Fake"; 24 + repo = "devolo_plc_api"; 25 + rev = "v${version}"; 26 + sha256 = "6EIT6ifC4M4qj/2dZYVZ3fb3bPs25R7IEh/MduYTTkU="; 27 + }; 28 + 29 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 30 + 31 + nativeBuildInputs = [ 32 + setuptools-scm 33 + ]; 34 + 35 + propagatedBuildInputs = [ 36 + httpx 37 + protobuf 38 + zeroconf 39 + ]; 40 + 41 + 42 + checkInputs = [ 43 + pytest-asyncio 44 + pytest-httpx 45 + pytest-mock 46 + pytestCheckHook 47 + ]; 48 + 49 + pythonImportsCheck = [ 50 + "devolo_plc_api" 51 + ]; 52 + 53 + meta = with lib; { 54 + description = "Python module to interact with Devolo PLC devices"; 55 + homepage = "https://github.com/2Fake/devolo_plc_api"; 56 + license = licenses.gpl3Only; 57 + maintainers = with maintainers; [ fab ]; 58 + }; 59 + }
+4
pkgs/development/python-modules/ipykernel/default.nix
··· 2 2 , buildPythonPackage 3 3 , callPackage 4 4 , fetchPypi 5 + , pythonOlder 6 + , argcomplete 5 7 , debugpy 6 8 , ipython 7 9 , jupyter-client ··· 24 26 jupyter-client 25 27 tornado 26 28 traitlets 29 + ] ++ lib.optionals (pythonOlder "3.8") [ 30 + argcomplete 27 31 ]; 28 32 29 33 # check in passthru.tests.pytest to escape infinite recursion with ipyparallel
+28 -10
pkgs/development/python-modules/libversion/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pkg-config, libversion, pythonOlder }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , libversion 5 + , pkg-config 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "libversion"; 5 - version = "1.2.3"; 11 + version = "1.2.4"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 6 15 7 - src = fetchPypi { 8 - inherit pname version; 9 - sha256 = "e6e903cc6307c3eda90401373eb81bfd0dd2dc93772ddab3d23705bed0c6f6e9"; 16 + src = fetchFromGitHub { 17 + owner = "repology"; 18 + repo = "py-libversion"; 19 + rev = version; 20 + sha256 = "sha256-p0wtSB+QXAERf+57MMb8cqWoy1bG3XaCpR9GPwYYvJM="; 10 21 }; 11 22 12 - nativeBuildInputs = [ pkg-config ]; 13 - buildInputs = [ libversion ]; 23 + nativeBuildInputs = [ 24 + pkg-config 25 + ]; 26 + 27 + buildInputs = [ 28 + libversion 29 + ]; 14 30 15 - disabled = pythonOlder "3.6"; 31 + pythonImportsCheck = [ 32 + "libversion" 33 + ]; 16 34 17 35 meta = with lib; { 18 - homepage = "https://github.com/repology/py-libversion"; 19 36 description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm"; 37 + homepage = "https://github.com/repology/py-libversion"; 20 38 license = licenses.mit; 21 - maintainers = [ maintainers.ryantm ]; 39 + maintainers = with maintainers; [ ryantm ]; 22 40 }; 23 41 }
+15 -8
pkgs/development/python-modules/m3u8/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, requests, iso8601, bottle, pytest, pytest-cov }: 1 + { lib, buildPythonPackage, fetchFromGitHub, requests, iso8601, bottle, pytestCheckHook }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "m3u8"; 5 - version = "0.6.0"; 5 + version = "0.9.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "globocom"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "0cmg993icpsa1b19kljxvjwhs167bsqrs0ad4wnwsi8qq6na5d4p"; 11 + sha256 = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA="; 12 12 }; 13 13 14 - checkInputs = [ bottle pytest pytest-cov ]; 14 + propagatedBuildInputs = [ requests iso8601 ]; 15 + 16 + checkInputs = [ bottle pytestCheckHook ]; 17 + 18 + pytestFlagsArray = [ 19 + "tests/test_parser.py" 20 + "tests/test_model.py" 21 + "tests/test_variant_m3u8.py" 22 + ]; 15 23 16 - checkPhase = '' 17 - pytest tests/test_{parser,model,variant_m3u8}.py 24 + preCheck = '' 25 + # Fix test on Hydra 26 + substituteInPlace tests/test_model.py --replace "/tmp/d.m3u8" "$TMPDIR/d.m3u8" 18 27 ''; 19 - 20 - propagatedBuildInputs = [ requests iso8601 ]; 21 28 22 29 meta = with lib; { 23 30 homepage = "https://github.com/globocom/m3u8";
+18 -18
pkgs/os-specific/linux/crda/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "crda"; 5 - version = "3.18"; 5 + version = "4.14"; 6 6 7 7 src = fetchurl { 8 - sha256 = "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"; 9 - url = "http://kernel.org/pub/software/network/crda/crda-${version}.tar.xz"; 8 + url = "https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/crda-${version}.tar.gz"; 9 + sha256 = "sha256-Wo81u4snR09Gaw511FG6kXQz2KqxiJZ4pk2cTnKouMI="; 10 10 }; 11 11 12 12 patches = [ 13 - # Switch to Python 3 14 - # https://lore.kernel.org/linux-wireless/1437542484-23409-1-git-send-email-ahmed.taahir@gmail.com/ 13 + # Fix python 3 build: except ImportError, e: SyntaxError: invalid syntax 15 14 (fetchpatch { 16 - url = "https://lore.kernel.org/linux-wireless/1437542484-23409-2-git-send-email-ahmed.taahir@gmail.com/raw"; 17 - sha256 = "0s2n340cgaasvg1k8g9v8xjrbh4y2mcgrhdmv97ja2fs8xjcjbf1"; 15 + url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d234fddf451fab0f4fc412e2769f54e11f10d7d8/trunk/crda-4.14-python-3.patch"; 16 + sha256 = "sha256-KEezEKrfizq9k4ZiE2mf3Nl4JiBayhXeVnFl7wYh28Y="; 18 17 }) 18 + 19 19 (fetchpatch { 20 - url = "https://lore.kernel.org/linux-wireless/1437542484-23409-3-git-send-email-ahmed.taahir@gmail.com/raw"; 21 - sha256 = "01dlfw7kqhyx025jxq2l75950b181p9r7i9zkflcwvbzzdmx59md"; 20 + url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d48ec843222b0d74c85bce86fa6f087c7dfdf952/trunk/0001-Makefile-Link-libreg.so-against-the-crypto-library.patch"; 21 + sha256 = "sha256-j93oydi209f22OF8aXZ/NczuUOnlhkdSeYvy2WRRvm0="; 22 22 }) 23 23 ]; 24 24 25 - buildInputs = [ libgcrypt libnl ]; 25 + strictDeps = true; 26 + 26 27 nativeBuildInputs = [ 27 28 pkg-config 28 - python3Packages.pycrypto 29 + python3Packages.m2crypto # only used for a build time script 30 + ]; 31 + 32 + buildInputs = [ 33 + libgcrypt 34 + libnl 29 35 ]; 30 36 31 37 postPatch = '' 32 38 patchShebangs utils/ 33 39 substituteInPlace Makefile \ 40 + --replace 'gzip' 'gzip -n' \ 34 41 --replace ldconfig true \ 35 42 --replace pkg-config $PKG_CONFIG 36 43 sed -i crda.c \ ··· 45 52 "REG_BIN=${wireless-regdb}/lib/crda/regulatory.bin" 46 53 ]; 47 54 48 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-const-variable"; 49 - 50 55 buildFlags = [ "all_noverify" ]; 51 56 enableParallelBuilding = true; 52 57 53 58 doCheck = true; 54 59 checkTarget = "verify"; 55 - 56 - postInstall = '' 57 - # The patch installs build header 58 - rm $out/include/reglib/keys-gcrypt.h 59 - ''; 60 60 61 61 meta = with lib; { 62 62 description = "Linux wireless Central Regulatory Domain Agent";
+3 -3
pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix
··· 1 1 { lib, stdenv, fetchurl, gnugrep, findutils }: 2 2 3 3 let 4 - version = "22-1.1ubuntu1"; # Zesty 4 + version = "28-1ubuntu4"; # impish 2021-06-24 5 5 6 6 in stdenv.mkDerivation { 7 7 pname = "kmod-blacklist"; ··· 9 9 10 10 src = fetchurl { 11 11 url = "https://launchpad.net/ubuntu/+archive/primary/+files/kmod_${version}.debian.tar.xz"; 12 - sha256 = "1k749g707ccb82l4xmrkp53khl71f57cpj9fzd1qyzrz147fjyhi"; 12 + sha256 = "sha256-K8tWpaLmCm3Jcxw3OZ+D7Koiug7epooRn1YMfqjGAiw="; 13 13 }; 14 14 15 15 installPhase = '' ··· 31 31 ''; 32 32 33 33 meta = with lib; { 34 - homepage = "https://packages.ubuntu.com/source/zesty/kmod"; 34 + homepage = "https://launchpad.net/ubuntu/+source/kmod"; 35 35 description = "Linux kernel module blacklists from Ubuntu"; 36 36 platforms = platforms.linux; 37 37 license = with licenses; [ gpl2Plus lgpl21Plus ];
+26
pkgs/servers/http/quark/default.nix
··· 1 + { lib, stdenv, fetchgit, patches ? null }: 2 + 3 + stdenv.mkDerivation { 4 + pname = "quark"; 5 + version = "unstable-2021-02-22"; 6 + 7 + src = fetchgit { 8 + url = "git://git.suckless.org/quark"; 9 + rev = "68b4f733b2755762e43df90f73db5a6ec8d14104"; 10 + sha256 = "sha256-Jtu5zJfHd+6Oq572nVem5msMDCOjdqDNH4SQck8/O5A="; 11 + }; 12 + 13 + inherit patches; 14 + 15 + makeFlags = [ "CC:=$(CC)" ]; 16 + 17 + installFlags = [ "PREFIX=$(out)" ]; 18 + 19 + meta = with lib; { 20 + description = "Extremely small and simple HTTP GET/HEAD-only web server for static content"; 21 + homepage = "http://tools.suckless.org/quark"; 22 + license = licenses.isc; 23 + maintainers = with maintainers; [ sikmir ]; 24 + platforms = platforms.linux; 25 + }; 26 + }
+2
pkgs/tools/admin/google-cloud-sdk/default.nix
··· 103 103 mkdir -p $out/share/zsh/site-functions 104 104 mv $out/google-cloud-sdk/completion.zsh.inc $out/share/zsh/site-functions/_gcloud 105 105 ln -s $out/share/zsh/site-functions/_gcloud $out/share/zsh/site-functions/_gsutil 106 + # zsh doesn't load completions from $FPATH without #compdef as the first line 107 + sed -i '1 i #compdef gcloud' $out/share/zsh/site-functions/_gcloud 106 108 107 109 # This directory contains compiled mac binaries. We used crcmod from 108 110 # nixpkgs instead.
+26
pkgs/tools/misc/gotify-desktop/default.nix
··· 1 + { lib, fetchFromGitHub, rustPlatform, openssl, pkg-config}: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "gotify-desktop"; 5 + version = "1.2.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "desbma"; 9 + repo = pname; 10 + rev = version; 11 + sha256 = "sha256-QQpZeXFv8BqFOQ+7ANWmtsgNlMakAL2ML4rlG2cFZJE="; 12 + }; 13 + 14 + cargoSha256 = "sha256-zcSAsI/yGGJer7SPKDKZ6NQ3UgTdBcDighS6VTNITMo="; 15 + 16 + nativeBuildInputs = [ pkg-config ]; 17 + 18 + buildInputs = [ openssl ]; 19 + 20 + meta = with lib; { 21 + description = "Small Gotify daemon to send messages as desktop notifications"; 22 + homepage = "https://github.com/desbma/gotify-desktop"; 23 + license = licenses.gpl3Plus; 24 + maintainers = [ maintainers.bryanasdev000 ]; 25 + }; 26 + }
+4
pkgs/top-level/all-packages.nix
··· 3076 3076 3077 3077 gotify-cli = callPackage ../tools/misc/gotify-cli { }; 3078 3078 3079 + gotify-desktop = callPackage ../tools/misc/gotify-desktop { }; 3080 + 3079 3081 gping = callPackage ../tools/networking/gping { }; 3080 3082 3081 3083 gpu-burn = callPackage ../applications/misc/gpu-burn { }; ··· 21068 21070 postgrey = callPackage ../servers/mail/postgrey { }; 21069 21071 21070 21072 pshs = callPackage ../servers/http/pshs { }; 21073 + 21074 + quark = callPackage ../servers/http/quark { }; 21071 21075 21072 21076 sympa = callPackage ../servers/mail/sympa { }; 21073 21077
+2
pkgs/top-level/python-packages.nix
··· 2026 2026 2027 2027 devolo-home-control-api = callPackage ../development/python-modules/devolo-home-control-api { }; 2028 2028 2029 + devolo-plc-api = callPackage ../development/python-modules/devolo-plc-api { }; 2030 + 2029 2031 devpi-common = callPackage ../development/python-modules/devpi-common { }; 2030 2032 2031 2033 devtools = callPackage ../development/python-modules/devtools { };