lol

Merge staging-next into staging

authored by

github-actions[bot] and committed by
GitHub
1266a252 fef42991

+459 -90
+3 -32
nixos/modules/tasks/filesystems/zfs.nix
··· 642 642 }; 643 643 644 644 scriptArgs = "%i"; 645 - path = [ pkgs.gawk cfgZfs.package ]; 645 + path = [ cfgZfs.package ]; 646 646 647 - # ZFS has no way of enumerating just devices in a pool in a way 648 - # that 'zpool online -e' supports. Thus, we've implemented a 649 - # bit of a strange approach of highlighting just devices. 650 - # See: https://github.com/openzfs/zfs/issues/12505 651 - script = let 652 - # This UUID has been chosen at random and is to provide a 653 - # collision-proof, predictable token to search for 654 - magicIdentifier = "NIXOS-ZFS-ZPOOL-DEVICE-IDENTIFIER-37108bec-aff6-4b58-9e5e-53c7c9766f05"; 655 - zpoolScripts = pkgs.writeShellScriptBin "device-highlighter" '' 656 - echo "${magicIdentifier}" 657 - ''; 658 - in '' 647 + script = '' 659 648 pool=$1 660 649 661 650 echo "Expanding all devices for $pool." 662 651 663 - # Put our device-highlighter script it to the PATH 664 - export ZPOOL_SCRIPTS_PATH=${zpoolScripts}/bin 665 - 666 - # Enable running our precisely specified zpool script as root 667 - export ZPOOL_SCRIPTS_AS_ROOT=1 668 - 669 - devices() ( 670 - zpool status -c device-highlighter "$pool" \ 671 - | awk '($2 == "ONLINE" && $6 == "${magicIdentifier}") { print $1; }' 672 - ) 673 - 674 - for device in $(devices); do 675 - echo "Attempting to expand $device of $pool..." 676 - if ! zpool online -e "$pool" "$device"; then 677 - echo "Failed to expand '$device' of '$pool'." 678 - fi 679 - done 652 + ${pkgs.zpool-auto-expand-partitions}/bin/zpool_part_disks --automatically-grow "$pool" 680 653 ''; 681 654 }; 682 655 ··· 700 673 Type = "oneshot"; 701 674 RemainAfterExit = true; 702 675 }; 703 - 704 - path = [ pkgs.gawk cfgZfs.package ]; 705 676 706 677 script = '' 707 678 for pool in ${poolListProvider}; do
+50
nixos/tests/zfs.nix
··· 127 127 }; 128 128 129 129 installer = (import ./installer.nix { }).zfsroot; 130 + 131 + expand-partitions = makeTest { 132 + name = "multi-disk-zfs"; 133 + nodes = { 134 + machine = { pkgs, ... }: { 135 + environment.systemPackages = [ pkgs.parted ]; 136 + boot.supportedFilesystems = [ "zfs" ]; 137 + networking.hostId = "00000000"; 138 + 139 + virtualisation = { 140 + emptyDiskImages = [ 20480 20480 20480 20480 20480 20480 ]; 141 + }; 142 + 143 + specialisation.resize.configuration = { 144 + services.zfs.expandOnBoot = [ "tank" ]; 145 + }; 146 + }; 147 + }; 148 + 149 + testScript = { nodes, ... }: 150 + '' 151 + start_all() 152 + machine.wait_for_unit("default.target") 153 + print(machine.succeed('mount')) 154 + 155 + print(machine.succeed('parted --script /dev/vdb -- mklabel gpt')) 156 + print(machine.succeed('parted --script /dev/vdb -- mkpart primary 1M 70M')) 157 + 158 + print(machine.succeed('parted --script /dev/vdc -- mklabel gpt')) 159 + print(machine.succeed('parted --script /dev/vdc -- mkpart primary 1M 70M')) 160 + 161 + print(machine.succeed('zpool create tank mirror /dev/vdb1 /dev/vdc1 mirror /dev/vdd /dev/vde mirror /dev/vdf /dev/vdg')) 162 + print(machine.succeed('zpool list -v')) 163 + print(machine.succeed('mount')) 164 + start_size = int(machine.succeed('df -k --output=size /tank | tail -n1').strip()) 165 + 166 + print(machine.succeed("/run/current-system/specialisation/resize/bin/switch-to-configuration test >&2")) 167 + machine.wait_for_unit("zpool-expand-pools.service") 168 + machine.wait_for_unit("zpool-expand@tank.service") 169 + 170 + print(machine.succeed('zpool list -v')) 171 + new_size = int(machine.succeed('df -k --output=size /tank | tail -n1').strip()) 172 + 173 + if (new_size - start_size) > 20000000: 174 + print("Disk grew appropriately.") 175 + else: 176 + print(f"Disk went from {start_size} to {new_size}, which doesn't seem right.") 177 + exit(1) 178 + ''; 179 + }; 130 180 }
+2 -2
pkgs/applications/editors/cudatext/default.nix
··· 38 38 in 39 39 stdenv.mkDerivation rec { 40 40 pname = "cudatext"; 41 - version = "1.159.2"; 41 + version = "1.160.0"; 42 42 43 43 src = fetchFromGitHub { 44 44 owner = "Alexey-T"; 45 45 repo = "CudaText"; 46 46 rev = version; 47 - sha256 = "sha256-dSZd+Dsln7xUfN/cqTZSdnpnINHsDCBrbNGcDLwqzzU="; 47 + sha256 = "sha256-42V6RFa+mAXyaUuKeDQa9Voi1MjnzcVl+cOA65VabxM="; 48 48 }; 49 49 50 50 postPatch = ''
+2 -2
pkgs/applications/editors/cudatext/deps.json
··· 16 16 }, 17 17 "ATSynEdit": { 18 18 "owner": "Alexey-T", 19 - "rev": "2022.03.23", 20 - "sha256": "sha256-D/pQ4TSWUaL97Nau3bGi7rc8MxnvuoDcD7HDNEDwmsk=" 19 + "rev": "2022.04.06", 20 + "sha256": "sha256-EnPOAl1qsdcYzmUgT5rSYqY/xOLSfDcMNCXIG8LC4H0=" 21 21 }, 22 22 "ATSynEdit_Cmp": { 23 23 "owner": "Alexey-T",
+6 -1
pkgs/applications/emulators/tinyemu/default.nix
··· 21 21 openssl 22 22 ]; 23 23 24 - makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ]; 24 + makeFlags = [ 25 + "CC:=$(CC)" 26 + "STRIP:=$(STRIP)" 27 + "DESTDIR=$(out)" 28 + "bindir=/bin" 29 + ]; 25 30 26 31 preInstall = '' 27 32 mkdir -p "$out/bin"
+77
pkgs/applications/misc/bikeshed/default.nix
··· 1 + { lib 2 + , buildPythonApplication 3 + , fetchPypi 4 + # build inputs 5 + , aiofiles 6 + , aiohttp 7 + , attrs 8 + , certifi 9 + , cssselect 10 + , html5lib 11 + , isodate 12 + , json-home-client 13 + , lxml 14 + , pillow 15 + , pygments 16 + , requests 17 + , result 18 + , setuptools 19 + , tenacity 20 + , widlparser 21 + }: 22 + 23 + buildPythonApplication rec { 24 + pname = "bikeshed"; 25 + version = "3.4.3"; 26 + 27 + src = fetchPypi { 28 + inherit pname version; 29 + sha256 = "sha256-vJW4yNbKCZraJ5vx8FheNsBl+zObGoLFgAVqoU0p9QQ="; 30 + }; 31 + 32 + # Relax requirements from "==" to ">=" 33 + # https://github.com/tabatkins/bikeshed/issues/2178 34 + postPatch = '' 35 + substituteInPlace requirements.txt \ 36 + --replace "==" ">=" 37 + ''; 38 + 39 + propagatedBuildInputs = [ 40 + aiofiles 41 + aiohttp 42 + attrs 43 + certifi 44 + cssselect 45 + html5lib 46 + isodate 47 + json-home-client 48 + lxml 49 + pillow 50 + pygments 51 + requests 52 + result 53 + setuptools 54 + tenacity 55 + widlparser 56 + ]; 57 + 58 + checkPhase = '' 59 + $out/bin/bikeshed test 60 + ''; 61 + 62 + pythonImportsCheck = [ "bikeshed" ]; 63 + 64 + meta = with lib; { 65 + description = "Preprocessor for anyone writing specifications that converts source files into actual specs"; 66 + longDescription = '' 67 + Bikeshed is a pre-processor for spec documents, turning a source document 68 + (containing only the actual spec content, plus several shorthands for linking 69 + to terms and other things) into a final spec document, with appropriate boilerplate, 70 + bibliography, indexes, etc all filled in. It's used on specs for CSS 71 + and many other W3C working groups, WHATWG, the C++ standards committee, and elsewhere! 72 + ''; 73 + homepage = "https://tabatkins.github.io/bikeshed/"; 74 + license = licenses.cc0; 75 + maintainers = [ maintainers.kvark ]; 76 + }; 77 + }
+2 -2
pkgs/applications/misc/gpsprune/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "gpsprune"; 5 - version = "21.1"; 5 + version = "21.2"; 6 6 7 7 src = fetchurl { 8 8 url = "https://activityworkshop.net/software/gpsprune/gpsprune_${version}.jar"; 9 - sha256 = "sha256-WyI9IKzUmKGiqiYs6SSuGhVUdO2UCsPSSL/IjPLykiM="; 9 + sha256 = "sha256-QgbLbpqlC2sITbPK4ZcaovmycwhWtnu06x8F0grpECc="; 10 10 }; 11 11 12 12 dontUnpack = true;
+2 -2
pkgs/applications/networking/browsers/lagrange/default.nix
··· 19 19 20 20 stdenv.mkDerivation rec { 21 21 pname = "lagrange"; 22 - version = "1.12.0"; 22 + version = "1.12.1"; 23 23 24 24 src = fetchFromGitHub { 25 25 owner = "skyjake"; 26 26 repo = "lagrange"; 27 27 rev = "v${version}"; 28 - sha256 = "sha256-1eWd4En14p8E04kLWbsbJSEdjManQ87N/P3klFbUQx4="; 28 + sha256 = "sha256-CpvoovTn++RTQjyeOlHTG+cjn32F+9qP32+YHpoLB8M="; 29 29 fetchSubmodules = true; 30 30 }; 31 31
+4 -3
pkgs/applications/networking/cluster/terraform/default.nix
··· 66 66 timstott 67 67 zimbatm 68 68 zowoq 69 + techknowlogick 69 70 ]; 70 71 }; 71 72 } // attrs'); ··· 191 192 }; 192 193 193 194 terraform_1 = mkTerraform { 194 - version = "1.1.7"; 195 - sha256 = "sha256-E8qY17MSdA7fQW4wGSDiPzbndBP5SZwelAJAWzka/io="; 196 - vendorSha256 = "sha256-lyy/hcr00ix6qZoxzSfCbXvDC8dRB2ZjrONywpqbVZ8="; 195 + version = "1.1.8"; 196 + sha256 = "sha256-U3RuLnDQD1EbPZG/wPuVMbSKmR3EqspkoK0Ky8aZb7k="; 197 + vendorSha256 = "sha256-Jy9o0O80OjagrHG25CSPblI49zKx0N8pwvEotk9qm3s="; 197 198 patches = [ ./provider-path-0_15.patch ]; 198 199 passthru = { inherit plugins; }; 199 200 };
+3 -3
pkgs/applications/networking/shellhub-agent/default.nix
··· 8 8 9 9 buildGoModule rec { 10 10 pname = "shellhub-agent"; 11 - version = "0.9.0"; 11 + version = "0.9.1"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "shellhub-io"; 15 15 repo = "shellhub"; 16 16 rev = "v${version}"; 17 - sha256 = "A1634b3uxlILMpx/9jpCIApqAqofvD4ZPasVKL29Gtc="; 17 + sha256 = "E1TX3GBVKn0tXloNhyiXOtDwSlO7mwXJ6zaOSHKZEFc="; 18 18 }; 19 19 20 20 modRoot = "./agent"; 21 21 22 - vendorSha256 = "sha256-LxJtLQr8djoRGznT5hL2agTgtZY6pFS8Zo0BwHDmugc="; 22 + vendorSha256 = "sha256-sPb49tRUHhwow7+IKiN33sgWYAa3lTpOD1vh8e5Wy68="; 23 23 24 24 ldflags = [ "-s" "-w" "-X main.AgentVersion=v${version}" ]; 25 25
+2
pkgs/applications/science/math/sage/sage-env.nix
··· 151 151 152 152 # needed for cython 153 153 export CC='${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc' 154 + export CXX='${stdenv.cc}/bin/${stdenv.cc.targetPrefix}c++' 154 155 # cython needs to find these libraries, otherwise will fail with `ld: cannot find -lflint` or similar 155 156 export LDFLAGS='${ 156 157 lib.concatStringsSep " " (map (pkg: "-L${pkg}/lib") [ ··· 178 179 mpfr.dev 179 180 ]) 180 181 }' 182 + export CXXFLAGS=$CFLAGS 181 183 182 184 export SAGE_LIB='${sagelib}/${python3.sitePackages}' 183 185
+20 -4
pkgs/applications/science/math/sage/sage-src.nix
··· 121 121 122 122 # https://trac.sagemath.org/ticket/33170 123 123 (fetchSageDiff { 124 - base = "9.5.rc1"; 125 - name = "ipython-8-update.patch"; 126 - rev = "a90a314616d86d6be9c0d5233f0d36c4bfe06231"; 127 - sha256 = "sha256-pXdtokTo84xNCnV+HyAKEzG562z8FjzJ7hczOja0dRw="; 124 + base = "9.6.beta5"; 125 + name = "ipython-8.1-update.patch"; 126 + rev = "4d2b53f1541375861310af3a7f7109c1c2ed475d"; 127 + sha256 = "sha256-ELda/VBzsQH7NdFas69fQ35QPUoJCeLx/gxT1j7qGR8="; 128 128 }) 129 129 130 130 # https://trac.sagemath.org/ticket/32968 ··· 156 156 157 157 # adapted from https://trac.sagemath.org/ticket/23712#comment:22 158 158 ./patches/tachyon-renamed-focallength.patch 159 + 160 + # https://trac.sagemath.org/ticket/33336 161 + (fetchSageDiff { 162 + base = "9.6.beta2"; 163 + name = "scipy-1.8-update.patch"; 164 + rev = "9c8235e44ffb509efa8a3ca6cdb55154e2b5066d"; 165 + sha256 = "sha256-bfc4ljNOxVnhlmxIuNbjbKl4vJXYq2tlF3Z8bbC8PWw="; 166 + }) 167 + 168 + # https://trac.sagemath.org/ticket/33495 169 + (fetchSageDiff { 170 + base = "9.6.beta5"; 171 + name = "networkx-2.7-update.patch"; 172 + rev = "8452003846a7303100847d8d0ed642fc642c11d6"; 173 + sha256 = "sha256-A/XMouPlc2sjFp30L+56fBGJXydS2EtzfPOV98FCDqI="; 174 + }) 159 175 ]; 160 176 161 177 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
+8 -3
pkgs/applications/science/math/sage/sagelib.nix
··· 181 181 # some files, like Pipfile, pyproject.toml, requirements.txt and setup.cfg 182 182 # are generated by the bootstrap script using m4. these can fetch data from 183 183 # build/pkgs, either directly or via sage-get-system-packages. 184 - sed -i 's/==2.1.0rc1/>=2.1.1/' ../gmpy2/install-requires.txt 185 - sed -i 's/, <3.4//' ../rpy2/install-requires.txt 186 - sed -i 's/, <4.3//' ../sphinx/install-requires.txt 187 184 sed -i '/sage_conf/d' src/setup.cfg.m4 188 185 sed -i '/sage_conf/d' src/requirements.txt.m4 186 + 187 + # version lower bounds are useful, but upper bounds are a hassle because 188 + # Sage tests already catch any relevant API breakage. 189 + # according to the discussion at https://trac.sagemath.org/ticket/33520, 190 + # upper bounds will be less noisy starting from Sage 9.6. 191 + sed -i 's/==2.1.0rc1/>=2.1.1/' ../gmpy2/install-requires.txt 192 + sed -i 's/, <[^, ]*//' ../*/install-requires.txt 193 + 189 194 for infile in src/*.m4; do 190 195 if [ -f "$infile" ]; then 191 196 outfile="src/$(basename $infile .m4)"
+2 -2
pkgs/applications/virtualization/docker/buildx.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "docker-buildx"; 5 - version = "0.8.1"; 5 + version = "0.8.2"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "docker"; 9 9 repo = "buildx"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-NJNFjzbiBcmXcBF1k0qybv5LnkaQ+1ehSfF18CC85JY="; 11 + sha256 = "sha256-AGRdmYKd76k5tmBTTqsSHj3yOU8QSd11G5ito0O/dWY="; 12 12 }; 13 13 14 14 vendorSha256 = null;
+2 -1
pkgs/development/libraries/civetweb/default.nix
··· 30 30 ''; 31 31 32 32 cmakeFlags = [ 33 + "-DBUILD_SHARED_LIBS=ON" 33 34 "-DCIVETWEB_ENABLE_CXX=ON" 34 - "-DBUILD_SHARED_LIBS=ON" 35 + "-DCIVETWEB_ENABLE_IPV6=ON" 35 36 36 37 # The civetweb unit tests rely on downloading their fork of libcheck. 37 38 "-DCIVETWEB_BUILD_TESTING=OFF"
+14 -22
pkgs/development/ocaml-modules/cmdliner/default.nix
··· 1 1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }: 2 2 3 - let 4 - pname = "cmdliner"; 5 - in 6 - 7 - assert lib.versionAtLeast ocaml.version "4.01.0"; 8 - 9 - let param = 10 - if lib.versionAtLeast ocaml.version "4.03" then { 11 - version = "1.0.4"; 12 - sha256 = "1h04q0zkasd0mw64ggh4y58lgzkhg6yhzy60lab8k8zq9ba96ajw"; 13 - } else { 14 - version = "1.0.2"; 15 - sha256 = "18jqphjiifljlh9jg8zpl6310p3iwyaqphdkmf89acyaix0s4kj1"; 16 - } 17 - ; in 3 + assert (lib.versionAtLeast ocaml.version "4.03"); 18 4 19 5 stdenv.mkDerivation rec { 20 - name = "ocaml${ocaml.version}-${pname}-${version}"; 21 - inherit (param) version; 6 + pname = "cmdliner"; 7 + version = "1.0.4"; 22 8 23 9 src = fetchurl { 24 10 url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz"; 25 - inherit (param) sha256; 11 + sha256 = "1h04q0zkasd0mw64ggh4y58lgzkhg6yhzy60lab8k8zq9ba96ajw"; 26 12 }; 27 13 28 - nativeBuildInputs = [ ocaml ocamlbuild findlib topkg ]; 29 - buildInputs = [ topkg ]; 30 - propagatedBuildInputs = [ result ]; 14 + nativeBuildInputs = [ ocaml ]; 31 15 32 - inherit (topkg) buildPhase installPhase; 16 + makeFlags = [ "PREFIX=$(out)" ]; 17 + installTargets = "install install-doc"; 18 + installFlags = [ 19 + "LIBDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib/${pname}" 20 + "DOCDIR=$(out)/share/doc/${pname}" 21 + ]; 22 + postInstall = '' 23 + mv $out/lib/ocaml/${ocaml.version}/site-lib/${pname}/{opam,${pname}.opam} 24 + ''; 33 25 34 26 meta = with lib; { 35 27 homepage = "https://erratique.ch/software/cmdliner";
+40
pkgs/development/python-modules/json-home-client/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + # build inputs 6 + , typing-extensions 7 + , uri-template 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "json-home-client"; 12 + version = "1.1.1"; 13 + 14 + disabled = pythonOlder "3.6"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "plinss"; 18 + repo = "json_home_client"; 19 + rev = "v${version}"; 20 + sha256 = "sha256-DhnvvY1nMe1sdRE+OgjBt4TsLmiqnD8If4rl700zW9E="; 21 + }; 22 + 23 + postPatch = '' 24 + sed -i -e 's/0.0.0/${version}/' setup.py 25 + ''; 26 + 27 + propagatedBuildInputs = [ 28 + typing-extensions 29 + uri-template 30 + ]; 31 + 32 + pythonImportsCheck = [ "json_home_client" ]; 33 + 34 + meta = with lib; { 35 + description = "Client class for calling http+json APIs in Python"; 36 + homepage = "https://github.com/plinss/json_home_client"; 37 + license = licenses.mit; 38 + maintainers = [ maintainers.kvark ]; 39 + }; 40 + }
+3 -3
pkgs/development/python-modules/pre-commit-hooks/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "pre-commit-hooks"; 14 - version = "4.1.0"; 14 + version = "4.2.0"; 15 15 format = "setuptools"; 16 16 17 17 disabled = pythonOlder "3.6"; ··· 19 19 src = fetchFromGitHub { 20 20 owner = "pre-commit"; 21 21 repo = pname; 22 - rev = "v${version}"; 23 - sha256 = "sha256-nxJp7LkCUkJj77RCeWedBusue3x0lZYatSidbueZqfo="; 22 + rev = "refs/tags/v${version}"; 23 + sha256 = "sha256-jSu4LutEgpeAbCgSHgk6VXQKLZo00T3TrQVZxsNU1co="; 24 24 }; 25 25 26 26 propagatedBuildInputs = [
+45
pkgs/development/python-modules/result/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytestCheckHook 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "result"; 9 + version = "0.7.0"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "rustedpy"; 13 + repo = "result"; 14 + rev = "v${version}"; 15 + sha256 = "sha256-bEf3OJg6ksDvzZE7ezA58Q2FObb5V7BG8vkKtX284Jg="; 16 + }; 17 + 18 + postPatch = '' 19 + substituteInPlace pyproject.toml \ 20 + --replace '"--flake8",' "" \ 21 + --replace '"--tb=short",' "" \ 22 + --replace '"--cov=result",' "" \ 23 + --replace '"--cov=tests",' "" \ 24 + --replace '"--cov-report=term",' "" \ 25 + --replace '"--cov-report=xml",' "" 26 + ''; 27 + 28 + checkInputs = [ 29 + pytestCheckHook 30 + ]; 31 + 32 + disabledTestPaths = [ 33 + #TODO: figure out the failure "match o:" Invalid Syntax 34 + "tests/test_pattern_matching.py" 35 + ]; 36 + 37 + pythonImportsCheck = [ "result" ]; 38 + 39 + meta = with lib; { 40 + description = "A simple Result type for Python 3 inspired by Rust, fully type annotated"; 41 + homepage = "https://github.com/rustedpy/result"; 42 + license = licenses.mit; 43 + maintainers = [ maintainers.kvark ]; 44 + }; 45 + }
+30
pkgs/development/python-modules/uri-template/default.nix
··· 1 + { lib, buildPythonPackage, fetchFromGitHub, python }: 2 + 3 + buildPythonPackage rec { 4 + pname = "uri-template"; 5 + version = "1.2.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "plinss"; 9 + repo = "uri_template"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-IAq6GpEwimq45FU0QugLZLSOhwAmC1KbpZKD0zyxsUs="; 12 + }; 13 + 14 + postPatch = '' 15 + sed -i -e 's/0.0.0/${version}/' setup.py 16 + ''; 17 + 18 + checkPhase = '' 19 + ${python.interpreter} test.py 20 + ''; 21 + 22 + pythonImportsCheck = [ "uri_template" ]; 23 + 24 + meta = with lib; { 25 + description = "An implementation of RFC 6570 URI Templates"; 26 + homepage = "https://github.com/plinss/uri_template/"; 27 + license = licenses.mit; 28 + maintainers = [ maintainers.kvark ]; 29 + }; 30 + }
+38
pkgs/development/python-modules/widlparser/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + # build inputs 6 + , typing-extensions 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "widlparser"; 11 + version = "1.0.12"; 12 + 13 + disabled = pythonOlder "3.7"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "plinss"; 17 + repo = pname; 18 + rev = "v${version}"; 19 + sha256 = "sha256-T17fDWYd1naza/ao7kXWGcRIl2fzL1/Z9SaJiutZzqk="; 20 + }; 21 + 22 + postPatch = '' 23 + sed -i -e 's/0.0.0/${version}/' setup.py 24 + ''; 25 + 26 + propagatedBuildInputs = [ 27 + typing-extensions 28 + ]; 29 + 30 + pythonImportsCheck = [ "widlparser" ]; 31 + 32 + meta = with lib; { 33 + description = "Stand-alone WebIDL Parser in Python"; 34 + homepage = "https://github.com/plinss/widlparser"; 35 + license = licenses.mit; 36 + maintainers = [ maintainers.kvark ]; 37 + }; 38 + }
+3 -3
pkgs/servers/nitter/default.nix
··· 2 2 3 3 nimPackages.buildNimPackage rec { 4 4 pname = "nitter"; 5 - version = "unstable-2022-02-11"; 5 + version = "unstable-2022-03-21"; 6 6 nimBinOnly = true; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "zedeus"; 10 10 repo = "nitter"; 11 - rev = "6695784050605c77a301c0a66764fa9a9580a2f5"; 12 - sha256 = "1lddzf6m74bw5kkv465cp211xxqbwnfacav7ia3y9i38rrnqwk6m"; 11 + rev = "6884f05041a9b8619ec709afacdfdd6482a120a0"; 12 + sha256 = "1mnc6jqljpqp9lgcrxxvf3aiswssr34v139cxfbwlmj45swmsazh"; 13 13 }; 14 14 15 15 buildInputs = with nimPackages; [
+40
pkgs/servers/nitter/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p common-updater-scripts curl jq nix nix-prefetch-git patchutils 3 + set -euo pipefail 4 + 5 + info() { 6 + if [ -t 2 ]; then 7 + set -- '\033[32m%s\033[39m\n' "$@" 8 + else 9 + set -- '%s\n' "$@" 10 + fi 11 + printf "$@" >&2 12 + } 13 + 14 + nitter_old_version=$(nix-instantiate --eval --strict --json -A nitter.version . | jq -r .) 15 + nitter_old_rev=$(nix-instantiate --eval --strict --json -A nitter.src.rev . | jq -r .) 16 + today=$(LANG=C date -u +'%Y-%m-%d') 17 + 18 + # use latest commit before today, we should not call the version *today* 19 + # because there might still be commits coming 20 + # use the day of the latest commit we picked as version 21 + commit=$(curl -Sfs "https://api.github.com/repos/zedeus/nitter/compare/$nitter_old_rev~1...master" \ 22 + | jq '.commits | map(select(.commit.committer.date < $today) | {sha, date: .commit.committer.date}) | .[-1]' --arg today "$today") 23 + nitter_new_rev=$(jq -r '.sha' <<< "$commit") 24 + nitter_new_version="unstable-$(jq -r '.date[0:10]' <<< "$commit")" 25 + info "latest commit before $today: $nitter_new_rev ($(jq -r '.date' <<< "$commit"))" 26 + 27 + if [ "$nitter_new_rev" = "$nitter_old_rev" ]; then 28 + info "nitter is up-to-date." 29 + exit 30 + fi 31 + 32 + if curl -Sfs "https://github.com/zedeus/nitter/compare/$nitter_old_rev...$nitter_new_rev.patch" \ 33 + | lsdiff | grep -Fxe 'a/nitter.nimble' -e 'b/nitter.nimble' > /dev/null; then 34 + info "nitter.nimble changed, some dependencies probably need updating." 35 + fi 36 + 37 + nitter_new_sha256=$(nix-prefetch-git --rev "$nitter_new_rev" "https://github.com/zedeus/nitter.git" | jq -r .sha256) 38 + update-source-version nitter "$nitter_new_version" "$nitter_new_sha256" --rev="$nitter_new_rev" 39 + git commit --all --verbose --message "nitter: $nitter_old_version -> $nitter_new_version" 40 + info "Updated nitter to $nitter_new_version."
+46
pkgs/tools/filesystems/zpool-auto-expand-partitions/default.nix
··· 1 + { rustPlatform 2 + , cloud-utils 3 + , fetchFromGitHub 4 + , lib 5 + , llvmPackages 6 + , pkg-config 7 + , util-linux 8 + , zfs 9 + }: 10 + rustPlatform.buildRustPackage rec { 11 + pname = "zpool-auto-expand-partitions"; 12 + version = "0.1.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "DeterminateSystems"; 16 + repo = "zpool-auto-expand-partitions"; 17 + rev = "v${version}"; 18 + hash = "sha256-LA6YO6vv7VCXwFfayQVxVR80niSCo89sG0hqh0wDEh8="; 19 + }; 20 + 21 + cargoHash = "sha256-5v0fqp8aro+QD/f5VudMREc8RvKQapNAoArcCKMN1Sw="; 22 + 23 + preBuild = '' 24 + substituteInPlace src/grow.rs \ 25 + --replace '"growpart"' '"${cloud-utils}/bin/growpart"' 26 + substituteInPlace src/lsblk.rs \ 27 + --replace '"lsblk"' '"${util-linux}/bin/lsblk"' 28 + ''; 29 + 30 + nativeBuildInputs = [ 31 + pkg-config 32 + rustPlatform.bindgenHook 33 + ]; 34 + 35 + buildInputs = [ 36 + util-linux 37 + zfs 38 + ]; 39 + 40 + meta = with lib; { 41 + description = "A tool that aims to expand all partitions in a specified zpool to fill the available space"; 42 + homepage = "https://github.com/DeterminateSystems/zpool-auto-expand-partitions"; 43 + license = licenses.asl20; 44 + maintainers = teams.determinatesystems.members; 45 + }; 46 + }
+3 -3
pkgs/tools/networking/findomain/default.nix
··· 10 10 11 11 rustPlatform.buildRustPackage rec { 12 12 pname = "findomain"; 13 - version = "7.2.0"; 13 + version = "8.0.0"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "Edu4rdSHL"; 17 17 repo = pname; 18 18 rev = version; 19 - sha256 = "sha256-NhsEXYEYoRZ/HlMS+MP/N+ZxB13DDZr5B8MY5dbONP0="; 19 + sha256 = "sha256-Bk3p8+FkjrF/nLsPRx8daqieV8iewAbcoO2DglFSERg="; 20 20 }; 21 21 22 - cargoSha256 = "sha256-Y/DgAMWhTgHuhdbYxpsg7UxLF7hXNQEY1aoaUbKdDEM="; 22 + cargoSha256 = "sha256-chHr/3yN2PLUQLYqkln12q3+n7tX2IclVGpXBCkPxCQ="; 23 23 24 24 nativeBuildInputs = [ installShellFiles perl ]; 25 25 buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
-2
pkgs/tools/package-management/nfpm/default.nix
··· 13 13 14 14 vendorSha256 = "sha256-guJgLjmB29sOLIzs2+gKNp0WTWC3zS9Sb5DD5IistKY="; 15 15 16 - doCheck = false; 17 - 18 16 ldflags = [ "-s" "-w" "-X main.version=${version}" ]; 19 17 20 18 meta = with lib; {
+4
pkgs/top-level/all-packages.nix
··· 1074 1074 1075 1075 cf-vault = callPackage ../tools/admin/cf-vault { }; 1076 1076 1077 + bikeshed = python3Packages.callPackage ../applications/misc/bikeshed { }; 1078 + 1077 1079 cope = callPackage ../tools/misc/cope { }; 1078 1080 1079 1081 ejson2env = callPackage ../tools/admin/ejson2env { }; ··· 11622 11624 zfstools = callPackage ../tools/filesystems/zfstools { }; 11623 11625 11624 11626 zfsnap = callPackage ../tools/backup/zfsnap { }; 11627 + 11628 + zpool-auto-expand-partitions = callPackage ../tools/filesystems/zpool-auto-expand-partitions { }; 11625 11629 11626 11630 zile = callPackage ../applications/editors/zile { }; 11627 11631
+8
pkgs/top-level/python-packages.nix
··· 4334 4334 4335 4335 jsonmerge = callPackage ../development/python-modules/jsonmerge { }; 4336 4336 4337 + json-home-client = callPackage ../development/python-modules/json-home-client { }; 4338 + 4337 4339 json-merge-patch = callPackage ../development/python-modules/json-merge-patch { }; 4338 4340 4339 4341 json-schema-for-humans = callPackage ../development/python-modules/json-schema-for-humans { }; ··· 8820 8822 8821 8823 restview = callPackage ../development/python-modules/restview { }; 8822 8824 8825 + result = callPackage ../development/python-modules/result { }; 8826 + 8823 8827 rethinkdb = callPackage ../development/python-modules/rethinkdb { }; 8824 8828 8825 8829 retry = callPackage ../development/python-modules/retry { }; ··· 10458 10462 10459 10463 uritemplate = callPackage ../development/python-modules/uritemplate { }; 10460 10464 10465 + uri-template = callPackage ../development/python-modules/uri-template { }; 10466 + 10461 10467 uritools = callPackage ../development/python-modules/uritools { }; 10462 10468 10463 10469 url-normalize = callPackage ../development/python-modules/url-normalize { }; ··· 10747 10753 whoosh = callPackage ../development/python-modules/whoosh { }; 10748 10754 10749 10755 widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { }; 10756 + 10757 + widlparser = callPackage ../development/python-modules/widlparser { }; 10750 10758 10751 10759 wiffi = callPackage ../development/python-modules/wiffi { }; 10752 10760