lol

Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
c6934c5a 67691cf5

+183 -80
+3
.gitignore
··· 23 23 24 24 # generated by pkgs/common-updater/update-script.nix 25 25 update-git-commits.txt 26 + 27 + # JetBrains IDEA module declaration file 28 + /nixpkgs.iml
+1
nixos/lib/test-driver/test-driver.py
··· 916 916 def send_key(self, key: str) -> None: 917 917 key = CHAR_TO_KEY.get(key, key) 918 918 self.send_monitor_command("sendkey {}".format(key)) 919 + time.sleep(0.01) 919 920 920 921 def start(self) -> None: 921 922 if self.booted:
+146 -29
pkgs/applications/misc/electrum/ltc.nix
··· 1 1 { lib 2 + , stdenv 2 3 , fetchurl 3 - , python3Packages 4 + , fetchFromGitHub 4 5 , wrapQtAppsHook 6 + , python3 7 + , zbar 8 + , secp256k1 9 + , enableQt ? true 10 + # for updater.nix 11 + , writeScript 12 + , common-updater-scripts 13 + , bash 14 + , coreutils 15 + , curl 16 + , gnugrep 17 + , gnupg 18 + , gnused 19 + , nix 5 20 }: 6 21 7 - python3Packages.buildPythonApplication rec { 22 + let 23 + version = "4.0.9.3"; 24 + 25 + libsecp256k1_name = 26 + if stdenv.isLinux then "libsecp256k1.so.0" 27 + else if stdenv.isDarwin then "libsecp256k1.0.dylib" 28 + else "libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary}"; 29 + 30 + libzbar_name = 31 + if stdenv.isLinux then "libzbar.so.0" 32 + else "libzbar${stdenv.hostPlatform.extensions.sharedLibrary}"; 33 + 34 + # Not provided in official source releases, which are what upstream signs. 35 + tests = fetchFromGitHub { 36 + owner = "pooler"; 37 + repo = "electrum-ltc"; 38 + rev = version; 39 + sha256 = "sha256-oZjQnrnj8nCaQjrIz8bWNt6Ib8Wu2ZMXHEPfCCy2fjk="; 40 + 41 + extraPostFetch = '' 42 + mv $out ./all 43 + mv ./all/electrum_ltc/tests $out 44 + ''; 45 + }; 46 + 47 + py = python3.override { 48 + packageOverrides = self: super: { 49 + 50 + aiorpcx = super.aiorpcx.overridePythonAttrs (oldAttrs: rec { 51 + version = "0.18.7"; 52 + src = oldAttrs.src.override { 53 + inherit version; 54 + sha256 = "1rswrspv27x33xa5bnhrkjqzhv0sknv5kd7pl1vidw9d2z4rx2l0"; 55 + }; 56 + }); 57 + }; 58 + }; 59 + 60 + in 61 + 62 + python3.pkgs.buildPythonApplication { 8 63 pname = "electrum-ltc"; 9 - version = "3.3.8.1"; 64 + inherit version; 10 65 11 66 src = fetchurl { 12 67 url = "https://electrum-ltc.org/download/Electrum-LTC-${version}.tar.gz"; 13 - sha256 = "0kxcx1xf6h9z8x0k483d6ykpnmfr30n6z3r6lgqxvbl42pq75li7"; 68 + sha256 = "sha256-+oox0BGqkvj0OGOKJF8tUoKdsZFeffNb6rTF8E8mo08="; 14 69 }; 15 70 16 - nativeBuildInputs = with python3Packages; [ pyqt5 wrapQtAppsHook ]; 71 + postUnpack = '' 72 + # can't symlink, tests get confused 73 + cp -ar ${tests} $sourceRoot/electrum_ltc/tests 74 + ''; 17 75 18 - propagatedBuildInputs = with python3Packages; [ 19 - pyaes 20 - ecdsa 76 + prePatch = '' 77 + substituteInPlace contrib/requirements/requirements.txt \ 78 + --replace "dnspython>=2.0,<2.1" "dnspython>=2.0" 79 + ''; 80 + 81 + nativeBuildInputs = lib.optionals enableQt [ wrapQtAppsHook ]; 82 + 83 + propagatedBuildInputs = with py.pkgs; [ 84 + aiohttp 85 + aiohttp-socks 86 + aiorpcx 87 + attrs 88 + bitstring 89 + cryptography 90 + dnspython 91 + jsonrpclib-pelix 92 + matplotlib 21 93 pbkdf2 22 - requests 23 - qrcode 24 - py_scrypt 25 - pyqt5 26 94 protobuf 27 - dnspython 28 - jsonrpclib-pelix 95 + py_scrypt 29 96 pysocks 30 - trezor 97 + qrcode 98 + requests 99 + tlslite-ng 100 + # plugins 31 101 btchip 102 + ckcc-protocol 103 + keepkey 104 + trezor 105 + ] ++ lib.optionals enableQt [ 106 + pyqt5 107 + qdarkstyle 32 108 ]; 33 109 34 110 preBuild = '' 35 111 sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py 36 - pyrcc5 icons.qrc -o gui/qt/icons_rc.py 37 - # Recording the creation timestamps introduces indeterminism to the build 38 - sed -i '/Created: .*/d' gui/qt/icons_rc.py 112 + substituteInPlace ./electrum_ltc/ecc_fast.py \ 113 + --replace ${libsecp256k1_name} ${secp256k1}/lib/libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary} 114 + '' + (if enableQt then '' 115 + substituteInPlace ./electrum_ltc/qrscanner.py \ 116 + --replace ${libzbar_name} ${zbar.lib}/lib/libzbar${stdenv.hostPlatform.extensions.sharedLibrary} 117 + '' else '' 118 + sed -i '/qdarkstyle/d' contrib/requirements/requirements.txt 119 + ''); 120 + 121 + postInstall = lib.optionalString stdenv.isLinux '' 122 + # Despite setting usr_share above, these files are installed under 123 + # $out/nix ... 124 + mv $out/${python3.sitePackages}/nix/store"/"*/share $out 125 + rm -rf $out/${python3.sitePackages}/nix 126 + 127 + substituteInPlace $out/share/applications/electrum-ltc.desktop \ 128 + --replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum-ltc %u"' \ 129 + "Exec=$out/bin/electrum-ltc %u" \ 130 + --replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum-ltc --testnet %u"' \ 131 + "Exec=$out/bin/electrum-ltc --testnet %u" 132 + 39 133 ''; 40 134 41 - preFixup = '' 42 - makeWrapperArgs+=("''${qtWrapperArgs[@]}") 135 + postFixup = lib.optionalString enableQt '' 136 + wrapQtApp $out/bin/electrum-ltc 43 137 ''; 44 138 45 - checkPhase = '' 139 + checkInputs = with python3.pkgs; [ pytestCheckHook pyaes pycryptodomex ]; 140 + 141 + pytestFlagsArray = [ "electrum_ltc/tests" ]; 142 + 143 + disabledTests = [ 144 + "test_loop" # test tries to bind 127.0.0.1 causing permission error 145 + "test_is_ip_address" # fails spuriously https://github.com/spesmilo/electrum/issues/7307 146 + ]; 147 + 148 + postCheck = '' 46 149 $out/bin/electrum-ltc help >/dev/null 47 150 ''; 48 151 152 + passthru.updateScript = import ./update.nix { 153 + inherit lib; 154 + inherit 155 + writeScript 156 + common-updater-scripts 157 + bash 158 + coreutils 159 + curl 160 + gnupg 161 + gnugrep 162 + gnused 163 + nix 164 + ; 165 + }; 166 + 49 167 meta = with lib; { 50 - description = "Litecoin thin client"; 168 + description = "Lightweight Litecoin Client"; 51 169 longDescription = '' 52 - Electrum-LTC is a simple, but powerful Litecoin wallet. A twelve-word 53 - security passphrase (or “seed”) leaves intruders stranded and your peace 54 - of mind intact. Keep it on paper, or in your head... and never worry 55 - about losing your litecoins to theft or hardware failure. No waiting, no 56 - lengthy blockchain downloads and no syncing to the network. 170 + Electrum-LTC is a simple, but powerful Litecoin wallet. A unique secret 171 + phrase (or “seed”) leaves intruders stranded and your peace of mind 172 + intact. Keep it on paper, or in your head... and never worry about losing 173 + your litecoins to theft or hardware failure. 57 174 ''; 58 175 homepage = "https://electrum-ltc.org/"; 59 176 license = licenses.mit; 60 - platforms = platforms.linux; 61 - maintainers = with maintainers; [ ]; 177 + platforms = platforms.all; 178 + maintainers = with maintainers; [ lourkeur ]; 62 179 }; 63 180 }
+2 -2
pkgs/applications/misc/koreader/default.nix
··· 13 13 let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; }; 14 14 in stdenv.mkDerivation rec { 15 15 pname = "koreader"; 16 - version = "2021.10.1"; 16 + version = "2021.11"; 17 17 18 18 src = fetchurl { 19 19 url = 20 20 "https://github.com/koreader/koreader/releases/download/v${version}/koreader-${version}-amd64.deb"; 21 - sha256 = "sha256-UpDwexBfjlne/uNMTtNjIyZb3TDMYFeDvtwtTFARovw="; 21 + sha256 = "sha256-5DNC0MlLB+2JBV2TADSvO40rPlvsPehfv+YE/45P2MA="; 22 22 }; 23 23 24 24 sourceRoot = ".";
+2 -2
pkgs/applications/misc/remarkable/rmapi/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "rmapi"; 5 - version = "0.0.17"; 5 + version = "0.0.18"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "juruen"; 9 9 repo = "rmapi"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-KFoaZ0OAqwJm4tEUaEAGJ+70nHJUbxg0kvhm71mQB6E="; 11 + sha256 = "sha256-Yrq21eiyNem9P219FxuQMHpagKQDaNsASwi2REaDAgk="; 12 12 }; 13 13 14 14 vendorSha256 = "sha256-gu+BU2tL/xZ7D6lZ1ueO/9IB9H3NNm4mloCZaGqZskU=";
+2 -2
pkgs/development/compilers/go/1.17.nix
··· 50 50 51 51 stdenv.mkDerivation rec { 52 52 pname = "go"; 53 - version = "1.17.3"; 53 + version = "1.17.4"; 54 54 55 55 src = fetchurl { 56 56 url = "https://dl.google.com/go/go${version}.src.tar.gz"; 57 - sha256 = "sha256-cFxkJR5bJdXVXt4QOcaqIr6kCnqTHRTDcDOYU2Q8PfA="; 57 + sha256 = "sha256-S+82mTge8J4HVihQQYdBZWXXEGYP7GWwV+3xzrGH/Es="; 58 58 }; 59 59 60 60 # perl is used for testing go vet
+1 -1
pkgs/os-specific/linux/amdgpu-pro/default.nix
··· 173 173 174 174 meta = with lib; { 175 175 description = "AMDGPU-PRO drivers"; 176 - homepage = "http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Beta-Driver-for-Vulkan-Release-Notes.aspx"; 176 + homepage = "https://www.amd.com/en/support"; 177 177 license = licenses.unfree; 178 178 platforms = platforms.linux; 179 179 maintainers = with maintainers; [ corngood ];
+9 -6
pkgs/tools/admin/scaleway-cli/default.nix
··· 1 - { lib, fetchFromGitHub, buildGoPackage }: 1 + { lib, fetchFromGitHub, buildGoModule }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule rec { 4 4 pname = "scaleway-cli"; 5 - version = "1.20"; 6 - 7 - goPackagePath = "github.com/scaleway/scaleway-cli"; 5 + version = "2.4.0"; 8 6 9 7 src = fetchFromGitHub { 10 8 owner = "scaleway"; 11 9 repo = "scaleway-cli"; 12 10 rev = "v${version}"; 13 - sha256 = "14likzp3hl04nq9nmpmh9m5zqjyspy5cyk20dkh03c1nhkd4vcnx"; 11 + sha256 = "yYzcziEKPSiMvw9LWd60MkHmYFAvN7Qza6Z117NOOv0="; 14 12 }; 13 + 14 + vendorSha256 = "0V9sHi/E095txnfF8YFW5O7o0e1H3sdn3tw5LqB92tI="; 15 + 16 + # some tests require network access to scaleway's API, failing when sandboxed 17 + doCheck = false; 15 18 16 19 meta = with lib; { 17 20 description = "Interact with Scaleway API from the command line";
-31
pkgs/tools/misc/0x0/default.nix
··· 1 - { lib, stdenv, xsel, curl, fetchFromGitLab, makeWrapper}: 2 - 3 - stdenv.mkDerivation { 4 - pname = "0x0"; 5 - version = "2018-06-24"; 6 - 7 - src = fetchFromGitLab { 8 - owner = "somasis"; 9 - repo = "scripts"; 10 - rev = "70422c83b2ac5856559b0ddaf6e2dc3dbef40dee"; 11 - sha256 = "1qpylyxrisy3p2lyirfarfj5yzrdjgsgxwf8gqwljpcjn207hr72"; 12 - }; 13 - 14 - nativeBuildInputs = [ makeWrapper ]; 15 - 16 - installPhase = '' 17 - install -Dm755 0x0 $out/bin/0x0 18 - 19 - patchShebangs $out/bin/0x0 20 - wrapProgram $out/bin/0x0 \ 21 - --prefix PATH : '${lib.makeBinPath [ curl xsel ]}' 22 - ''; 23 - 24 - meta = with lib; { 25 - description = "A client for 0x0.st"; 26 - homepage = "https://gitlab.com/somasis/scripts/"; 27 - maintainers = [ maintainers.ar1a ]; 28 - license = licenses.unlicense; 29 - platforms = platforms.unix; 30 - }; 31 - }
+8 -3
pkgs/tools/misc/flashrom/default.nix
··· 1 1 { fetchurl 2 2 , fetchpatch 3 - , gcc9Stdenv 3 + , stdenv 4 4 , installShellFiles 5 5 , lib 6 6 , libftdi1 ··· 11 11 , jlinkSupport ? false 12 12 }: 13 13 14 - gcc9Stdenv.mkDerivation rec { 14 + stdenv.mkDerivation rec { 15 15 pname = "flashrom"; 16 16 version = "1.2"; 17 17 ··· 31 31 url = "https://github.com/flashrom/flashrom/commit/da6b3b70cb852dd8e9f9e21aef95fa83e7f7ab0d.patch"; 32 32 sha256 = "sha256-fXYDXgT/ik+qtxxFEyJ7/axtycbwLkEg0UD+hzsYEwg="; 33 33 }) 34 + # fix build with gcc 10 35 + (fetchpatch { 36 + url = "https://github.com/flashrom/flashrom/commit/3a0c1966e4c66f91e6e8551e906b6db38002acb4.patch"; 37 + sha256 = "sha256-UfXLefMS20VUc7hk4IXECFbDWEbBnHMGSzOYemTfvjI="; 38 + }) 34 39 ]; 35 40 36 41 postPatch = '' ··· 51 56 license = licenses.gpl2; 52 57 maintainers = with maintainers; [ funfunctor fpletz felixsinger ]; 53 58 platforms = platforms.all; 54 - broken = gcc9Stdenv.isDarwin; # requires DirectHW 59 + broken = stdenv.isDarwin; # requires DirectHW 55 60 }; 56 61 }
+8 -2
pkgs/tools/security/scrypt/default.nix
··· 1 - { lib, stdenv, fetchurl, openssl, util-linux, getconf }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , openssl 5 + , getconf 6 + , util-linux 7 + }: 2 8 3 9 stdenv.mkDerivation rec { 4 10 pname = "scrypt"; ··· 27 33 28 34 doCheck = true; 29 35 checkTarget = "test"; 30 - checkInputs = [ util-linux ]; 36 + checkInputs = lib.optionals stdenv.isLinux [ util-linux ]; 31 37 32 38 meta = with lib; { 33 39 description = "Encryption utility";
+1
pkgs/top-level/aliases.nix
··· 33 33 ### Deprecated aliases - for backward compatibility 34 34 35 35 mapAliases ({ 36 + _0x0 = throw "0x0 upstream is abandoned and no longer exists: https://gitlab.com/somasis/scripts/"; 36 37 PPSSPP = ppsspp; # added 2017-10-01 37 38 QmidiNet = qmidinet; # added 2016-05-22 38 39 accounts-qt = libsForQt5.accounts-qt; # added 2015-12-19
-2
pkgs/top-level/all-packages.nix
··· 793 793 794 794 ### TOOLS 795 795 796 - _0x0 = callPackage ../tools/misc/0x0 { }; 797 - 798 796 _3llo = callPackage ../tools/misc/3llo { }; 799 797 800 798 _3mux = callPackage ../tools/misc/3mux { };