Merge branch 'master' into staging-next

+244 -225
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 144 144 145 145 - The EC2 image module previously detected and activated swap-formatted instance store devices and partitions in stage-1 (initramfs). This behaviour has been removed. Users relying on this should provide their own implementation. 146 146 147 + - `fail2ban` has been updated to 1.0.2, which has a few breaking changes compared to 0.11.2 ([changelog for 1.0.1](https://github.com/fail2ban/fail2ban/blob/1.0.1/ChangeLog), [changelog for 1.0.2](https://github.com/fail2ban/fail2ban/blob/1.0.2/ChangeLog)) 148 + 147 149 - Calling `makeSetupHook` without passing a `name` argument is deprecated. 148 150 149 151 - `lib.systems.examples.ghcjs` and consequently `pkgsCross.ghcjs` now use the target triplet `javascript-unknown-ghcjs` instead of `js-unknown-ghcjs`. This has been done to match an [upstream decision](https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c) to follow Cabal's platform naming more closely. Nixpkgs will also reject `js` as an architecture name.
+4 -3
nixos/lib/test-driver/test_driver/machine.py
··· 737 737 self.connected = True 738 738 739 739 def screenshot(self, filename: str) -> None: 740 - word_pattern = re.compile(r"^\w+$") 741 - if word_pattern.match(filename): 742 - filename = os.path.join(self.out_dir, f"{filename}.png") 740 + if "." not in filename: 741 + filename += ".png" 742 + if "/" not in filename: 743 + filename = os.path.join(self.out_dir, filename) 743 744 tmp = f"{filename}.ppm" 744 745 745 746 with self.nested(
+1 -11
nixos/modules/services/security/fail2ban.nix
··· 273 273 "fail2ban/filter.d".source = "${cfg.package}/etc/fail2ban/filter.d/*.conf"; 274 274 }; 275 275 276 + systemd.packages = [ cfg.package ]; 276 277 systemd.services.fail2ban = { 277 - description = "Fail2ban Intrusion Prevention System"; 278 - 279 278 wantedBy = [ "multi-user.target" ]; 280 - after = [ "network.target" ]; 281 279 partOf = optional config.networking.firewall.enable "firewall.service"; 282 280 283 281 restartTriggers = [ fail2banConf jailConf pathsConf ]; 284 282 285 283 path = [ cfg.package cfg.packageFirewall pkgs.iproute2 ] ++ cfg.extraPackages; 286 - 287 - unitConfig.Documentation = "man:fail2ban(1)"; 288 284 289 285 serviceConfig = { 290 - ExecStart = "${cfg.package}/bin/fail2ban-server -xf start"; 291 - ExecStop = "${cfg.package}/bin/fail2ban-server stop"; 292 - ExecReload = "${cfg.package}/bin/fail2ban-server reload"; 293 - Type = "simple"; 294 - Restart = "on-failure"; 295 - PIDFile = "/run/fail2ban/fail2ban.pid"; 296 286 # Capabilities 297 287 CapabilityBoundingSet = [ "CAP_AUDIT_READ" "CAP_DAC_READ_SEARCH" "CAP_NET_ADMIN" "CAP_NET_RAW" ]; 298 288 # Security
+20 -20
pkgs/applications/networking/cluster/terraform-providers/providers.json
··· 28 28 "vendorHash": "sha256-jK7JuARpoxq7hvq5+vTtUwcYot0YqlOZdtDwq4IqKvk=" 29 29 }, 30 30 "aiven": { 31 - "hash": "sha256-MKxLfR2yV4/LYqQ/yZt44JAHIEinO8078ikWPBD/HXo=", 31 + "hash": "sha256-wVgfT/1o5Hz7xbX3OOfjF2P5bhV7kPxnXZOU/3erRpk=", 32 32 "homepage": "https://registry.terraform.io/providers/aiven/aiven", 33 33 "owner": "aiven", 34 34 "repo": "terraform-provider-aiven", 35 - "rev": "v4.1.2", 35 + "rev": "v4.1.3", 36 36 "spdx": "MIT", 37 37 "vendorHash": "sha256-wz1Wy/4GI8/Wlu828RX7OE+XJHzCS/X45tW3Jb7Tx3E=" 38 38 }, ··· 301 301 "vendorHash": "sha256-BpXhKjfxyCLdGRHn1GexW0MoLj4/C6Bn7scZ76JARxQ=" 302 302 }, 303 303 "digitalocean": { 304 - "hash": "sha256-ZTt/lfHWD9G/SbZ7mLKPjJAsva5bgRqvvX8Lh1Ci+ts=", 304 + "hash": "sha256-fnABnzEMDJBzUl6/K1rgWdW4oCqrKZ+3RSXVvT1sHVk=", 305 305 "homepage": "https://registry.terraform.io/providers/digitalocean/digitalocean", 306 306 "owner": "digitalocean", 307 307 "repo": "terraform-provider-digitalocean", 308 - "rev": "v2.26.0", 308 + "rev": "v2.27.1", 309 309 "spdx": "MPL-2.0", 310 310 "vendorHash": null 311 311 }, ··· 429 429 "vendorHash": null 430 430 }, 431 431 "gitlab": { 432 - "hash": "sha256-nBmb+wHl6FEHIH/P9SsDCtvDKVHzcL4/iaQwtuSjbVg=", 432 + "hash": "sha256-bn02BLLSgdo7/Oh95rNOxVUVvwflSvU43DOsii5LM0E=", 433 433 "homepage": "https://registry.terraform.io/providers/gitlabhq/gitlab", 434 434 "owner": "gitlabhq", 435 435 "repo": "terraform-provider-gitlab", 436 - "rev": "v15.9.0", 436 + "rev": "v15.10.0", 437 437 "spdx": "MPL-2.0", 438 - "vendorHash": "sha256-yK2M07+FmMEE9YuCJk86qLncHr2ToeZQAzWRQz1lLNM=" 438 + "vendorHash": "sha256-s4FynUO6bT+8uZYkecbQCtFw1jFTAAYUkSzONI6Ba9g=" 439 439 }, 440 440 "google": { 441 441 "hash": "sha256-RLWfaJX7ytU8xKcXUp+ON2//rO6R0cw0beXdiH9E3SU=", ··· 476 476 "vendorHash": "sha256-zPO+TbJsFrgfjSaSrX5YRop/0LDDw/grNNntaIGiBU0=" 477 477 }, 478 478 "gridscale": { 479 - "hash": "sha256-deEP1x5rGIgX/CcRK4gWYbCsV1IKY7CFkwQl+uKhbEk=", 479 + "hash": "sha256-61LZyXqb+1kWHBk1/lw5C5hmeL4aHwSSS++9/9L/tDw=", 480 480 "homepage": "https://registry.terraform.io/providers/gridscale/gridscale", 481 481 "owner": "gridscale", 482 482 "repo": "terraform-provider-gridscale", 483 - "rev": "v1.18.0", 483 + "rev": "v1.18.1", 484 484 "spdx": "MPL-2.0", 485 485 "vendorHash": null 486 486 }, ··· 765 765 "vendorHash": null 766 766 }, 767 767 "newrelic": { 768 - "hash": "sha256-EJpIITB6OF6TuFgQ4e9UIP7zaaFGc6DgR1fJ1pK2isc=", 768 + "hash": "sha256-2MbzXcdtP4O+zWGhBCp+uryVJmZoA2kXDe8AH3vZ0zA=", 769 769 "homepage": "https://registry.terraform.io/providers/newrelic/newrelic", 770 770 "owner": "newrelic", 771 771 "repo": "terraform-provider-newrelic", 772 - "rev": "v3.17.1", 772 + "rev": "v3.18.0", 773 773 "spdx": "MPL-2.0", 774 - "vendorHash": "sha256-QL9uEO89PwU8UFbLWCytXpzgrVeXKmaPmFm844ABAvI=" 774 + "vendorHash": "sha256-dEbJTeHWhfR+8o/s4fi4I0sio1uuh6OIzJhVF5Rup04=" 775 775 }, 776 776 "nomad": { 777 777 "hash": "sha256-oHY+jM4JQgLlE1wd+/H9H8H2g0e9ZuxI6OMlz3Izfjg=", ··· 811 811 "vendorHash": "sha256-LRIfxQGwG988HE5fftGl6JmBG7tTknvmgpm4Fu1NbWI=" 812 812 }, 813 813 "oci": { 814 - "hash": "sha256-OceXVqPbjJnPNKbf5vKzbTBEES1+CNCa/dTfPFgdACM=", 814 + "hash": "sha256-KxhX9QJ7VssZz388xhmNsyDcnDKxu5MDL0nDWMOfEXQ=", 815 815 "homepage": "https://registry.terraform.io/providers/oracle/oci", 816 816 "owner": "oracle", 817 817 "repo": "terraform-provider-oci", 818 - "rev": "v4.112.0", 818 + "rev": "v4.113.0", 819 819 "spdx": "MPL-2.0", 820 820 "vendorHash": null 821 821 }, ··· 1045 1045 "vendorHash": "sha256-NO1r/EWLgH1Gogru+qPeZ4sW7FuDENxzNnpLSKstnE8=" 1046 1046 }, 1047 1047 "spotinst": { 1048 - "hash": "sha256-fa6mEFNNAAp3E8W9U3VpICgKX3SGcQGQtce8DO+cUbY=", 1048 + "hash": "sha256-4zD2/0s7zeZhreM1dauJ6BSMxTKL16HH530bNCiKNv4=", 1049 1049 "homepage": "https://registry.terraform.io/providers/spotinst/spotinst", 1050 1050 "owner": "spotinst", 1051 1051 "repo": "terraform-provider-spotinst", 1052 - "rev": "v1.106.1", 1052 + "rev": "v1.108.0", 1053 1053 "spdx": "MPL-2.0", 1054 - "vendorHash": "sha256-TxTw+13HJDHDdLhGjM3SXOL87RJdRFs0Y+t/oK81DfI=" 1054 + "vendorHash": "sha256-Ac8cWoaTj18DFZOf8FYbI9FPb17GcA9r7ZkOMNV7iI4=" 1055 1055 }, 1056 1056 "stackpath": { 1057 1057 "hash": "sha256-7KQUddq+M35WYyAIAL8sxBjAaXFcsczBRO1R5HURUZg=", ··· 1063 1063 "vendorHash": "sha256-OGYiynCwbJU2KisS7Y6xmLuBKOtQvh3MWPrvBk/x95U=" 1064 1064 }, 1065 1065 "statuscake": { 1066 - "hash": "sha256-PcA0t/G11w9ud+56NdiRXi82ubJ+wpL4XcexT1O2ADw=", 1066 + "hash": "sha256-yky6aCRK1I9NOEWcz6n6uvU+6HBJcLPQr1LLVO+34jE=", 1067 1067 "homepage": "https://registry.terraform.io/providers/StatusCakeDev/statuscake", 1068 1068 "owner": "StatusCakeDev", 1069 1069 "repo": "terraform-provider-statuscake", 1070 - "rev": "v2.0.6", 1070 + "rev": "v2.1.0", 1071 1071 "spdx": "MPL-2.0", 1072 - "vendorHash": "sha256-0D36uboEHqw968MKqkgARib9R04JH5FlXAfPL8OEpgU=" 1072 + "vendorHash": "sha256-fgvNdBwkz+YHOrLRQSe1D+3/VUhttKkJGzV6cg57g8s=" 1073 1073 }, 1074 1074 "sumologic": { 1075 1075 "hash": "sha256-1BwhcyEJs7Xm+p2ChA9K7g+qBzqoh3eyAT9qKMfHB1g=",
+3 -3
pkgs/applications/networking/dnscontrol/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "dnscontrol"; 5 - version = "3.27.2"; 5 + version = "3.28.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "StackExchange"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-2U5DlXnW+mCxGfdjikeMm+k+KyxDwjXmjGrH3uq4lJo="; 11 + sha256 = "sha256-LIW5z8xb7o9oah6P3GvhzXTPRoBNuxYfZlGq4l0KS8M="; 12 12 }; 13 13 14 - vendorHash = "sha256-h0n0dR1iqeVEFvcDeMlfBu7mlrSNloAih2ZhT3ML1FI="; 14 + vendorHash = "sha256-fd3pf23Cw85RVYDrI9LYQIF0d3+o5VG+qqcN1c/xhuY="; 15 15 16 16 ldflags = [ "-s" "-w" ]; 17 17
+2 -2
pkgs/data/fonts/lxgw-neoxihei/default.nix
··· 5 5 6 6 stdenvNoCC.mkDerivation rec { 7 7 pname = "lxgw-neoxihei"; 8 - version = "1.007"; 8 + version = "1.009"; 9 9 10 10 src = fetchurl { 11 11 url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf"; 12 - hash = "sha256-ChYpRCw8DAo8bo6fJ+5LyF+FGmER+4nY2aEx1GIROdU="; 12 + hash = "sha256-Q7rrgqrjALLY2y40mNfNmzSeGwcVwhZUmDj08nlWsao="; 13 13 }; 14 14 15 15 dontUnpack = true;
+2 -2
pkgs/data/fonts/sarasa-gothic/default.nix
··· 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "sarasa-gothic"; 5 - version = "0.40.3"; 5 + version = "0.40.4"; 6 6 7 7 src = fetchurl { 8 8 # Use the 'ttc' files here for a smaller closure size. 9 9 # (Using 'ttf' files gives a closure size about 15x larger, as of November 2021.) 10 10 url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z"; 11 - hash = "sha256-lhjsmsgFEXMX5byp50qRoHoX9nuKcsrAp6NGDdfXo3I="; 11 + hash = "sha256-PVlozsWYomsQKp8WxHD8+pxzlTmIKGPK71HDLWMR9S0="; 12 12 }; 13 13 14 14 sourceRoot = ".";
+2 -4
pkgs/desktops/cinnamon/cinnamon-common/default.nix
··· 72 72 in 73 73 stdenv.mkDerivation rec { 74 74 pname = "cinnamon-common"; 75 - version = "5.6.7"; 75 + version = "5.6.8"; 76 76 77 77 src = fetchFromGitHub { 78 78 owner = "linuxmint"; 79 79 repo = "cinnamon"; 80 80 rev = version; 81 - hash = "sha256-oBD9jpZSOB7R3bbMv1qOQkkQyFTKkNnNagJ1INeA0s4="; 81 + hash = "sha256-qL8GaEH/0d4yEwwdaR55fTp0RitbyptoxKOBO3nmbic="; 82 82 }; 83 83 84 84 patches = [ ··· 158 158 sed "s|/usr/share/sounds|/run/current-system/sw/share/sounds|g" -i ./files/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py 159 159 160 160 sed "s|'python3'|'${pythonEnv.interpreter}'|g" -i ./files/usr/share/cinnamon/cinnamon-settings/bin/CinnamonGtkSettings.py 161 - 162 - sed "s|/usr/share/%s|/run/current-system/sw/share/%s|g" -i ./files/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py 163 161 164 162 sed "s|/usr/bin/cinnamon-screensaver-command|/run/current-system/sw/bin/cinnamon-screensaver-command|g" \ 165 163 -i ./files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js -i ./files/usr/share/cinnamon/applets/user@cinnamon.org/applet.js
+2 -2
pkgs/desktops/cinnamon/cinnamon-settings-daemon/default.nix
··· 32 32 33 33 stdenv.mkDerivation rec { 34 34 pname = "cinnamon-settings-daemon"; 35 - version = "5.6.1"; 35 + version = "5.6.2"; 36 36 37 37 src = fetchFromGitHub { 38 38 owner = "linuxmint"; 39 39 repo = pname; 40 40 rev = version; 41 - hash = "sha256-QR77O3rFfY0+6cKoS75xoFRplNo4nvTMtR2rNKZERYE="; 41 + hash = "sha256-IqYfHMjKe7gVsM6HgihQMNkcXSYBOft1lamXOLa1Y8k="; 42 42 }; 43 43 44 44 patches = [
+2 -2
pkgs/desktops/cinnamon/muffin/default.nix
··· 35 35 36 36 stdenv.mkDerivation rec { 37 37 pname = "muffin"; 38 - version = "5.6.3"; 38 + version = "5.6.4"; 39 39 40 40 outputs = [ "out" "dev" "man" ]; 41 41 ··· 43 43 owner = "linuxmint"; 44 44 repo = pname; 45 45 rev = version; 46 - hash = "sha256-qcm1CRUMKFx4KDXBnaIVLHuZTzSMEWEBFTWMe85pJDE="; 46 + hash = "sha256-NnQ7KF979HnsEc4X/Wf1YOfUvByHvVIdTAcJyUjhsp8="; 47 47 }; 48 48 49 49 patches = [
+2 -2
pkgs/desktops/cinnamon/nemo/default.nix
··· 23 23 24 24 stdenv.mkDerivation rec { 25 25 pname = "nemo"; 26 - version = "5.6.3"; 26 + version = "5.6.4"; 27 27 28 28 src = fetchFromGitHub { 29 29 owner = "linuxmint"; 30 30 repo = pname; 31 31 rev = version; 32 - sha256 = "sha256-CuG0s2gtuYwuIvti5xGiGJa5C5IcruFtNhv6s1vcuUA="; 32 + sha256 = "sha256-zvELN9ggfmfIEPeD0VEWM25kRi8RWA/aKlrdO5dKX1k="; 33 33 }; 34 34 35 35 patches = [
+1 -1
pkgs/development/beam-modules/elixir-ls/default.nix
··· 36 36 # of the no-deps-check requirement 37 37 buildPhase = '' 38 38 runHook preBuild 39 - mix do compile --no-deps-check, elixir-ls.release 39 + mix do compile --no-deps-check, elixir_ls.release 40 40 runHook postBuild 41 41 ''; 42 42
+2 -2
pkgs/development/libraries/belle-sip/default.nix
··· 11 11 12 12 stdenv.mkDerivation rec { 13 13 pname = "belle-sip"; 14 - version = "5.2.23"; 14 + version = "5.2.37"; 15 15 16 16 src = fetchFromGitLab { 17 17 domain = "gitlab.linphone.org"; ··· 19 19 group = "BC"; 20 20 repo = pname; 21 21 rev = version; 22 - sha256 = "sha256-c73PCM+bRz6CjGRY2AapEcvKC1UqyEfzb7qsicmrkQU="; 22 + sha256 = "sha256-e5CwLzpvW5ktv5R8PZkNmSXAi/SaTltJs9LY26iKsLo="; 23 23 }; 24 24 25 25 nativeBuildInputs = [ cmake ];
-53
pkgs/development/libraries/ogre/1.9.x.nix
··· 1 - { fetchFromGitHub, stdenv, lib 2 - , cmake, libGLU, libGL 3 - , freetype, freeimage, zziplib, xorgproto, libXrandr 4 - , libXaw, freeglut, libXt, libpng, boost, ois 5 - , libX11, libXmu, libSM, pkg-config 6 - , libXxf86vm, libICE 7 - , libXrender 8 - , withNvidiaCg ? false, nvidia_cg_toolkit 9 - , withSamples ? false }: 10 - 11 - stdenv.mkDerivation rec { 12 - pname = "ogre"; 13 - version = "1.9.1"; 14 - 15 - src = fetchFromGitHub { 16 - owner = "OGRECave"; 17 - repo = "ogre"; 18 - rev = "v${version}"; 19 - sha256 = "11lfgzqaps3728dswrq3cbwk7aicigyz08q4hfyy6ikc6m35r4wg"; 20 - }; 21 - 22 - # fix for ARM. sys/sysctl.h has moved in later glibcs, and 23 - # https://github.com/OGRECave/ogre-next/issues/132 suggests it isn't 24 - # needed anyway. 25 - postPatch = '' 26 - substituteInPlace OgreMain/src/OgrePlatformInformation.cpp \ 27 - --replace '#include <sys/sysctl.h>' "" 28 - ''; 29 - 30 - cmakeFlags = [ "-DOGRE_BUILD_SAMPLES=${toString withSamples}" ] 31 - ++ map (x: "-DOGRE_BUILD_PLUGIN_${x}=on") 32 - ([ "BSP" "OCTREE" "PCZ" "PFX" ] ++ lib.optional withNvidiaCg "CG") 33 - ++ map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ]; 34 - 35 - 36 - nativeBuildInputs = [ cmake pkg-config ]; 37 - buildInputs = 38 - [ libGLU libGL 39 - freetype freeimage zziplib xorgproto libXrandr 40 - libXaw freeglut libXt libpng boost ois 41 - libX11 libXmu libSM 42 - libXxf86vm libICE 43 - libXrender 44 - ] ++ lib.optional withNvidiaCg nvidia_cg_toolkit; 45 - 46 - meta = { 47 - description = "A 3D engine"; 48 - homepage = "https://www.ogre3d.org/"; 49 - maintainers = [ lib.maintainers.raskin ]; 50 - platforms = lib.platforms.linux; 51 - license = lib.licenses.mit; 52 - }; 53 - }
+12 -1
pkgs/development/libraries/timezonemap/default.nix
··· 1 - { lib, stdenv 1 + { stdenv 2 + , lib 2 3 , autoreconfHook 3 4 , fetchbzr 5 + , fetchpatch 4 6 , pkg-config 5 7 , gtk3 6 8 , glib ··· 19 21 rev = "58"; 20 22 sha256 = "sha256-wCJXwgnN+aZVerjQCm8oT3xIcwmc4ArcEoCh9pMrt+E="; 21 23 }; 24 + 25 + patches = [ 26 + # Fix crashes when running in GLib 2.76 27 + # https://bugs.launchpad.net/ubuntu/+source/libtimezonemap/+bug/2012116 28 + (fetchpatch { 29 + url = "https://git.launchpad.net/ubuntu/+source/libtimezonemap/plain/debian/patches/timezone-map-Never-try-to-access-to-free-d-or-null-values.patch?id=88f72f724e63df061204f6818c9a1e7d8c003e29"; 30 + sha256 = "sha256-M5eR0uaqpJOeW2Ya1Al+3ZciXukzHpnjJTMVvdO0dPE="; 31 + }) 32 + ]; 22 33 23 34 nativeBuildInputs = [ 24 35 pkg-config
+1
pkgs/development/node-packages/overrides.nix
··· 625 625 # These dependencies are required by 626 626 # https://github.com/Automattic/node-canvas. 627 627 buildInputs = with pkgs; [ 628 + giflib 628 629 pixman 629 630 cairo 630 631 pango
+2 -2
pkgs/development/python-modules/azure-keyvault-administration/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "azure-keyvault-administration"; 13 - version = "4.2.0"; 13 + version = "4.3.0"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.6"; ··· 18 18 src = fetchPypi { 19 19 inherit pname version; 20 20 extension = "zip"; 21 - hash = "sha256-2Xuyx1dAJRgiDEetQu1qnzTua7l/G5eSWOTI/UI/z00="; 21 + hash = "sha256-PuKjui0OP0ODNErjbjJ90hOgee97JDrVT2sh+MufxWY="; 22 22 }; 23 23 24 24 propagatedBuildInputs = [
+113 -29
pkgs/development/tools/unityhub/default.nix
··· 1 - { lib, fetchurl, appimageTools }: 1 + { lib, stdenv, fetchurl, dpkg, makeWrapper, buildFHSUserEnv 2 + , extraPkgs ? pkgs: [ ] 3 + , extraLibs ? pkgs: [ ] 4 + }: 2 5 3 - appimageTools.wrapType2 rec { 6 + stdenv.mkDerivation rec { 4 7 pname = "unityhub"; 5 - version = "2.3.2"; 8 + version = "3.4.1"; 6 9 7 10 src = fetchurl { 8 - # mirror of https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage 9 - url = "https://archive.org/download/unity-hub-${version}/UnityHub.AppImage"; 10 - sha256 = "07nfyfp9apshqarc6pgshsczila6x4943hiyyizc55kp85aw0imn"; 11 + url = "https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/pool/main/u/unity/unityhub_amd64/unityhub-amd64-${version}.deb"; 12 + sha256 = "sha256-/P6gPLSRGfwEN801cyNrZTpHyZKO+4tU6cFvLz8ERuo="; 11 13 }; 12 14 13 - extraPkgs = (pkgs: with pkgs; with xorg; [ gtk2 gdk-pixbuf glib libGL libGLU nss nspr 14 - alsa-lib cups libcap fontconfig freetype pango 15 - cairo dbus dbus-glib libdbusmenu libdbusmenu-gtk2 expat zlib libpng12 udev tbb 16 - libpqxx gtk3 libsecret lsb-release openssl nodejs ncurses5 15 + nativeBuildInputs = [ 16 + dpkg 17 + makeWrapper 18 + ]; 17 19 18 - libX11 libXcursor libXdamage libXfixes libXrender libXi 19 - libXcomposite libXext libXrandr libXtst libSM libICE libxcb 20 + fhsEnv = buildFHSUserEnv { 21 + name = "${pname}-fhs-env"; 22 + runScript = ""; 20 23 21 - libselinux pciutils libpulseaudio libxml2 icu clang cacert 22 - ]); 24 + # Seems to be needed for GTK filepickers to work in FHSUserEnv 25 + profile = "XDG_DATA_DIRS=\"\$XDG_DATA_DIRS:/usr/share/\""; 26 + 27 + targetPkgs = pkgs: with pkgs; [ 28 + xorg.libXrandr 29 + 30 + # GTK filepicker 31 + gsettings-desktop-schemas 32 + hicolor-icon-theme 23 33 24 - extraInstallCommands = 25 - let appimageContents = appimageTools.extractType2 { inherit pname version src; }; in 26 - '' 27 - install -Dm444 ${appimageContents}/unityhub.desktop -t $out/share/applications 28 - substituteInPlace $out/share/applications/unityhub.desktop \ 29 - --replace 'Exec=AppRun' 'Exec=${pname}' 30 - install -m 444 -D ${appimageContents}/unityhub.png \ 31 - $out/share/icons/hicolor/64x64/apps/unityhub.png 32 - ''; 34 + # Bug Reporter dependencies 35 + fontconfig 36 + freetype 37 + lsb-release 38 + ] ++ extraPkgs pkgs; 39 + 40 + multiPkgs = pkgs: with pkgs; [ 41 + # Unity Hub ldd dependencies 42 + cups 43 + gtk3 44 + expat 45 + libxkbcommon 46 + lttng-ust_2_12 47 + krb5 48 + alsa-lib 49 + nss_latest 50 + libdrm 51 + mesa 52 + nspr 53 + atk 54 + dbus 55 + at-spi2-core 56 + pango 57 + xorg.libXcomposite 58 + xorg.libXext 59 + xorg.libXdamage 60 + xorg.libXfixes 61 + xorg.libxcb 62 + xorg.libxshmfence 63 + xorg.libXScrnSaver 64 + xorg.libXtst 65 + 66 + # Unity Hub additional dependencies 67 + libva 68 + openssl_1_1 69 + cairo 70 + xdg-utils 71 + libnotify 72 + libuuid 73 + libsecret 74 + udev 75 + libappindicator 76 + wayland 77 + cpio 78 + icu 79 + libpulseaudio 80 + 81 + # Editor dependencies 82 + libglvnd # provides ligbl 83 + xorg.libX11 84 + xorg.libXcursor 85 + glib 86 + gdk-pixbuf 87 + libxml2 88 + zlib 89 + clang 90 + git # for git-based packages in unity package manager 91 + ] ++ extraLibs pkgs; 92 + }; 93 + 94 + unpackCmd = "dpkg -x $curSrc src"; 95 + 96 + dontConfigure = true; 97 + dontBuild = true; 98 + 99 + installPhase = '' 100 + runHook preInstall 101 + 102 + mkdir -p $out 103 + mv opt/ usr/share/ $out 104 + 105 + # `/opt/unityhub/unityhub` is a shell wrapper that runs `/opt/unityhub/unityhub-bin` 106 + # Which we don't need and overwrite with our own custom wrapper 107 + makeWrapper ${fhsEnv}/bin/${pname}-fhs-env $out/opt/unityhub/unityhub \ 108 + --add-flags $out/opt/unityhub/unityhub-bin \ 109 + --argv0 unityhub 110 + 111 + # Link binary 112 + mkdir -p $out/bin 113 + ln -s $out/opt/unityhub/unityhub $out/bin/unityhub 114 + 115 + # Replace absolute path in desktop file to correctly point to nix store 116 + substituteInPlace $out/share/applications/unityhub.desktop \ 117 + --replace /opt/unityhub/unityhub $out/opt/unityhub/unityhub 118 + 119 + runHook postInstall 120 + ''; 33 121 34 122 meta = with lib; { 123 + description = "Official Unity3D app to download and manage Unity Projects and installations"; 35 124 homepage = "https://unity3d.com/"; 36 - description = "Game development tool"; 37 - longDescription = '' 38 - Popular development platform for creating 2D and 3D multiplatform games 39 - and interactive experiences. 40 - ''; 41 125 license = licenses.unfree; 126 + maintainers = with maintainers; [ tesq0 huantian ]; 42 127 platforms = [ "x86_64-linux" ]; 43 - maintainers = with maintainers; [ tesq0 ]; 44 128 }; 45 129 }
+2 -2
pkgs/os-specific/linux/checkpolicy/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "checkpolicy"; 5 - version = "3.3"; 5 + version = "3.5"; 6 6 inherit (libsepol) se_url; 7 7 8 8 src = fetchurl { 9 9 url = "${se_url}/${version}/checkpolicy-${version}.tar.gz"; 10 - sha256 = "118l8c2vvnnckbd269saslr7adv6rdavr5rv0z5vh2m1lgglxj15"; 10 + sha256 = "sha256-eqSKsiIqC5iBER1tf3DDAU09kziCfZ4C3xBaaMDfXbw="; 11 11 }; 12 12 13 13 nativeBuildInputs = [ bison flex ];
+30 -30
pkgs/os-specific/linux/kernel/hardened/patches.json
··· 2 2 "4.14": { 3 3 "patch": { 4 4 "extra": "-hardened1", 5 - "name": "linux-hardened-4.14.309-hardened1.patch", 6 - "sha256": "0j9dnrxn75qigfv2jq8aa76jli80bi56hriy205qar99vgp59a8a", 7 - "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.14.309-hardened1/linux-hardened-4.14.309-hardened1.patch" 5 + "name": "linux-hardened-4.14.310-hardened1.patch", 6 + "sha256": "1bzxmniyld257xiaickb7rkzr9myg6bzczj6srf0c0wwz6zrdza3", 7 + "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.14.310-hardened1/linux-hardened-4.14.310-hardened1.patch" 8 8 }, 9 - "sha256": "1rwhz9w5x2x3idy2f0bpk945qam6xxswbn69wmz8y1ik9b1nns09", 10 - "version": "4.14.309" 9 + "sha256": "0r91f3jj3y0cca4sfs0xa12lbrc62q2yzgval5ainwr74bk7dwlb", 10 + "version": "4.14.310" 11 11 }, 12 12 "4.19": { 13 13 "patch": { 14 14 "extra": "-hardened1", 15 - "name": "linux-hardened-4.19.277-hardened1.patch", 16 - "sha256": "16q0lc5nzzf372mlkjvg8vr67afnz0jxwv3zvvg6ip3k7gljphfz", 17 - "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.19.277-hardened1/linux-hardened-4.19.277-hardened1.patch" 15 + "name": "linux-hardened-4.19.278-hardened1.patch", 16 + "sha256": "13vx0xqgfigdyb9x59728z2idzv0nisif6vpx73n08m99gax2y88", 17 + "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.19.278-hardened1/linux-hardened-4.19.278-hardened1.patch" 18 18 }, 19 - "sha256": "137mjk6hzpr120bb6ky3b8q4jnkbgqla0cpgnhzpcng00aidk0pn", 20 - "version": "4.19.277" 19 + "sha256": "0miyadgnd52cgw3bgpmx66kr1pgxh14b2f52fasy57b6wysv0lnv", 20 + "version": "4.19.278" 21 21 }, 22 22 "5.10": { 23 23 "patch": { 24 24 "extra": "-hardened1", 25 - "name": "linux-hardened-5.10.174-hardened1.patch", 26 - "sha256": "0zgp7jl16227fjj9j5zwahxa5xbkp2gkznpvzh68sanwd04qzby3", 27 - "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.174-hardened1/linux-hardened-5.10.174-hardened1.patch" 25 + "name": "linux-hardened-5.10.175-hardened1.patch", 26 + "sha256": "0jxiccf3m0bih5c4sl44pxfnf9vs3fc66jvnp2q2l45a9dqr6ssh", 27 + "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.175-hardened1/linux-hardened-5.10.175-hardened1.patch" 28 28 }, 29 - "sha256": "092ai8ggplsa933s3qlayyjkw9d3z6sg782byh7rz0ym0380r2ig", 30 - "version": "5.10.174" 29 + "sha256": "1kkv63v5lc0ahkl8sjmwhqxahmwmbxcbf4mfcmkf6d7j50p5cxz2", 30 + "version": "5.10.175" 31 31 }, 32 32 "5.15": { 33 33 "patch": { 34 34 "extra": "-hardened1", 35 - "name": "linux-hardened-5.15.102-hardened1.patch", 36 - "sha256": "05cxqcwr6fh2v69n4s30gs0pdw5i8h8kvrp3kzz0n2zb2afg6c8z", 37 - "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.15.102-hardened1/linux-hardened-5.15.102-hardened1.patch" 35 + "name": "linux-hardened-5.15.103-hardened1.patch", 36 + "sha256": "1ci35f146qfl6km86ram5qs5v6x41ny7708j5lxz3fhx2533fm82", 37 + "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.15.103-hardened1/linux-hardened-5.15.103-hardened1.patch" 38 38 }, 39 - "sha256": "1rh1kcvaz42brn5sxqq00mvy0b36fck196yvxfg7b5qbjzxxs724", 40 - "version": "5.15.102" 39 + "sha256": "01fpipy8skmp4dyxgk8fk9k6hc0w0gvk7mm8f8pm7jhwcf0vlxh8", 40 + "version": "5.15.103" 41 41 }, 42 42 "5.4": { 43 43 "patch": { 44 44 "extra": "-hardened1", 45 - "name": "linux-hardened-5.4.236-hardened1.patch", 46 - "sha256": "07540gv79ah7n2vvmqa5nq0rjh6y0al78wmqwlzc2xdfmahk63mj", 47 - "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.236-hardened1/linux-hardened-5.4.236-hardened1.patch" 45 + "name": "linux-hardened-5.4.237-hardened1.patch", 46 + "sha256": "0agnw7p1ylly09p7fvvnp7lgkgfrvbw33wc38ds3y0qhg5gghnby", 47 + "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.237-hardened1/linux-hardened-5.4.237-hardened1.patch" 48 48 }, 49 - "sha256": "0la92nvqihg4284risb2ljsrdh8x4wy0dwc3wsyq09bgm7x95j6c", 50 - "version": "5.4.236" 49 + "sha256": "09smq8jsbpqfh135snljack2wj41anx8f8i0lmjcqcq5zzhgw25p", 50 + "version": "5.4.237" 51 51 }, 52 52 "6.1": { 53 53 "patch": { 54 54 "extra": "-hardened1", 55 - "name": "linux-hardened-6.1.19-hardened1.patch", 56 - "sha256": "0ax948idfyzpd7x8cp89m9lrwy30d4clj8z7ih919iji5nggjmvh", 57 - "url": "https://github.com/anthraxx/linux-hardened/releases/download/6.1.19-hardened1/linux-hardened-6.1.19-hardened1.patch" 55 + "name": "linux-hardened-6.1.20-hardened1.patch", 56 + "sha256": "1lz9ms716kzjn3sgrqxqi7q1zdrf6f81wn6xgv5kk1a2mcc3zw4p", 57 + "url": "https://github.com/anthraxx/linux-hardened/releases/download/6.1.20-hardened1/linux-hardened-6.1.20-hardened1.patch" 58 58 }, 59 - "sha256": "0iw6b9gmhpk6r1asds5kfg6drqvaxy15xicqx9ga873cbxp1r6cy", 60 - "version": "6.1.19" 59 + "sha256": "1w1iy1i3bpzrs5rhvqbn2awxv5qqgng9n7jd5js66g0sq3l2sckn", 60 + "version": "6.1.20" 61 61 } 62 62 }
+2 -2
pkgs/os-specific/linux/kernel/linux-4.14.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "4.14.310"; 6 + version = "4.14.311"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; 16 - sha256 = "0r91f3jj3y0cca4sfs0xa12lbrc62q2yzgval5ainwr74bk7dwlb"; 16 + sha256 = "1mbwrgjz575qxg4gwi2fxc94kprmiblwap3jix0mj4887zllqgw0"; 17 17 }; 18 18 } // (args.argsOverride or {}))
+2 -2
pkgs/os-specific/linux/kernel/linux-4.19.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "4.19.278"; 6 + version = "4.19.279"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; 16 - sha256 = "0miyadgnd52cgw3bgpmx66kr1pgxh14b2f52fasy57b6wysv0lnv"; 16 + sha256 = "104qkyflkfkp8iyshpirb9q708vvsgfbxfwgl0dnas3k7nyc6v3k"; 17 17 }; 18 18 } // (args.argsOverride or {}))
+2 -2
pkgs/os-specific/linux/kernel/linux-5.10.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "5.10.175"; 6 + version = "5.10.176"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; 16 - sha256 = "1kkv63v5lc0ahkl8sjmwhqxahmwmbxcbf4mfcmkf6d7j50p5cxz2"; 16 + sha256 = "14zpdrrrpgxx44nxjn0rifrchnmsvvpkzpm1n82kw5q4p9h2q1yf"; 17 17 }; 18 18 } // (args.argsOverride or {}))
+2 -2
pkgs/os-specific/linux/kernel/linux-5.15.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "5.15.103"; 6 + version = "5.15.104"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; 16 - sha256 = "01fpipy8skmp4dyxgk8fk9k6hc0w0gvk7mm8f8pm7jhwcf0vlxh8"; 16 + sha256 = "0m3bscml2mvafbj5k9a3qa8akfxms8wfpzsr687lfblr17735ibi"; 17 17 }; 18 18 } // (args.argsOverride or { }))
+2 -2
pkgs/os-specific/linux/kernel/linux-5.4.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "5.4.237"; 6 + version = "5.4.238"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; 16 - sha256 = "09smq8jsbpqfh135snljack2wj41anx8f8i0lmjcqcq5zzhgw25p"; 16 + sha256 = "07x9ibcshsm451qcpawv3l0z7g8w8jg79h6dfdmbm3jrhpdb58kh"; 17 17 }; 18 18 } // (args.argsOverride or {}))
+2 -2
pkgs/os-specific/linux/kernel/linux-6.1.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "6.1.20"; 6 + version = "6.1.21"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; 16 - sha256 = "1w1iy1i3bpzrs5rhvqbn2awxv5qqgng9n7jd5js66g0sq3l2sckn"; 16 + sha256 = "0fnr2pw4pi0vnkpv8hfipya09cgdz6ghks7p6vdl2d71dawb2g5k"; 17 17 }; 18 18 } // (args.argsOverride or { }))
+2 -2
pkgs/os-specific/linux/kernel/linux-6.2.nix
··· 3 3 with lib; 4 4 5 5 buildLinux (args // rec { 6 - version = "6.2.7"; 6 + version = "6.2.8"; 7 7 8 8 # modDirVersion needs to be x.y.z, will automatically add .0 if needed 9 9 modDirVersion = versions.pad 3 version; ··· 13 13 14 14 src = fetchurl { 15 15 url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; 16 - sha256 = "138dpmj8qr5fcji99kmi3sj34ah21bgqgzsz2lbhn37v059100s3"; 16 + sha256 = "0rgn8k9rhk819bazcaz7fbk5ba1hph02izqrw06ag0rgsj3svl7y"; 17 17 }; 18 18 } // (args.argsOverride or { }))
+2 -2
pkgs/os-specific/linux/kernel/linux-libre.nix
··· 1 1 { stdenv, lib, fetchsvn, linux 2 2 , scripts ? fetchsvn { 3 3 url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/"; 4 - rev = "19109"; 5 - sha256 = "1z8qbfrn489bsi4grpw5dzw8f5jzml0swngfflh8flb80zcq0s2p"; 4 + rev = "19160"; 5 + sha256 = "1fgfb35f1lhizb3p5d6p04pkff5c2k7x3yayb4ns1225l8klspqb"; 6 6 } 7 7 , ... 8 8 }:
+3 -3
pkgs/os-specific/linux/kernel/linux-rt-5.10.nix
··· 6 6 , ... } @ args: 7 7 8 8 let 9 - version = "5.10.168-rt83"; # updated by ./update-rt.sh 9 + version = "5.10.175-rt84"; # updated by ./update-rt.sh 10 10 branch = lib.versions.majorMinor version; 11 11 kversion = builtins.elemAt (lib.splitString "-" version) 0; 12 12 in buildLinux (args // { ··· 17 17 18 18 src = fetchurl { 19 19 url = "mirror://kernel/linux/kernel/v5.x/linux-${kversion}.tar.xz"; 20 - sha256 = "171mmgkjdsn6gx6z8kr5d80aygn4jjf8jc9zfh7m2c4dpab2azdn"; 20 + sha256 = "1kkv63v5lc0ahkl8sjmwhqxahmwmbxcbf4mfcmkf6d7j50p5cxz2"; 21 21 }; 22 22 23 23 kernelPatches = let rt-patch = { 24 24 name = "rt"; 25 25 patch = fetchurl { 26 26 url = "mirror://kernel/linux/kernel/projects/rt/${branch}/older/patch-${version}.patch.xz"; 27 - sha256 = "08nz84yyjd8ffxhpiksqikhkhrn9a9x5mbfrz317sx6mf55wyxm0"; 27 + sha256 = "13pqr6lhngig7g2s1qb27vq8x9b3wilz7gx820icdlvdxx1mi27p"; 28 28 }; 29 29 }; in [ rt-patch ] ++ kernelPatches; 30 30
+3 -3
pkgs/servers/minio/default.nix
··· 15 15 in 16 16 buildGoModule rec { 17 17 pname = "minio"; 18 - version = "2023-02-27T18-10-45Z"; 18 + version = "2023-03-13T19-46-17Z"; 19 19 20 20 src = fetchFromGitHub { 21 21 owner = "minio"; 22 22 repo = "minio"; 23 23 rev = "RELEASE.${version}"; 24 - sha256 = "sha256-0Qz64uNe5rkHOUepzCYUdeyP1ZXzY3Bi1LUvQw2quPA="; 24 + sha256 = "sha256-dv1u/D0tU1PD6YfrDFICIC1S0Y4xgNcwYSTl9rJlufs="; 25 25 }; 26 26 27 - vendorHash = "sha256-b/2/VTIVJyWNm6j+GyhbOKsIl9B0Nqw2fbpBw20Wicw="; 27 + vendorHash = "sha256-iBgvfnXQnh5ZV8QsK6nK6hiHVB7l+ui7tVTGfa/Vuhc="; 28 28 29 29 doCheck = false; 30 30
+4 -4
pkgs/servers/monitoring/grafana/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "grafana"; 5 - version = "9.4.3"; 5 + version = "9.4.7"; 6 6 7 7 excludedPackages = [ "alert_webhook_listener" "clean-swagger" "release_publisher" "slow_proxy" "slow_proxy_mac" "macaron" "devenv" ]; 8 8 ··· 10 10 rev = "v${version}"; 11 11 owner = "grafana"; 12 12 repo = "grafana"; 13 - sha256 = "sha256-LYUbypPXoWwWA4u2JxhUS/lozQNo2DCFGDPCmNP3GoE="; 13 + sha256 = "sha256-vhGFZjxO20M3fQhXlEDDkad/yOyFOu48sHZ63MEnWIA="; 14 14 }; 15 15 16 16 srcStatic = fetchurl { 17 17 url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz"; 18 - sha256 = "sha256-aq6/sMfYVebxh46+zxphfWttFN4vBpUgCLXobLWVozk="; 18 + sha256 = "sha256-HiKr1ier13xUlrwsJrxo60wwqmiPcza2oOLIfMgFWc0="; 19 19 }; 20 20 21 - vendorSha256 = "sha256-atnlEdGDiUqQkslvRlPSi6VC5rEvRVV6R2Wxur3geew="; 21 + vendorSha256 = "sha256-sUvjZTg2/6UGjc2Qv8YO4IWlS4Y/FzGRVOQ9I/wp/aM="; 22 22 23 23 nativeBuildInputs = [ wire ]; 24 24
+9 -27
pkgs/tools/security/fail2ban/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub 2 2 , python3 3 - , fetchpatch 4 3 , installShellFiles 5 4 }: 6 5 7 6 python3.pkgs.buildPythonApplication rec { 8 7 pname = "fail2ban"; 9 - version = "0.11.2"; 8 + version = "1.0.2"; 10 9 11 10 src = fetchFromGitHub { 12 11 owner = "fail2ban"; 13 12 repo = "fail2ban"; 14 13 rev = version; 15 - sha256 = "q4U9iWCa1zg8sA+6pPNejt6v/41WGIKN5wITJCrCqQE="; 14 + hash = "sha256-Zd8zLkFlvXTbeInEkNFyHgcAiOsX4WwF6hf5juSQvbY="; 16 15 }; 17 16 18 17 outputs = [ "out" "man" ]; ··· 25 24 pyinotify 26 25 ]; 27 26 28 - patches = [ 29 - # remove references to use_2to3, for setuptools>=58 30 - # has been merged into master, remove next release 31 - (fetchpatch { 32 - url = "https://github.com/fail2ban/fail2ban/commit/5ac303df8a171f748330d4c645ccbf1c2c7f3497.patch"; 33 - sha256 = "sha256-aozQJHwPcJTe/D/PLQzBk1YH3OAP6Qm7wO7cai5CVYI="; 34 - }) 35 - # fix use of MutableMapping with Python >= 3.10 36 - # https://github.com/fail2ban/fail2ban/issues/3142 37 - (fetchpatch { 38 - url = "https://github.com/fail2ban/fail2ban/commit/294ec73f629d0e29cece3a1eb5dd60b6fccea41f.patch"; 39 - sha256 = "sha256-Eimm4xjBDYNn5QdTyMqGgT5EXsZdd/txxcWJojXlsFE="; 40 - }) 41 - ]; 42 - 43 27 preConfigure = '' 44 - # workaround for setuptools 58+ 45 - # https://github.com/fail2ban/fail2ban/issues/3098 46 28 patchShebangs fail2ban-2to3 47 29 ./fail2ban-2to3 48 30 49 31 for i in config/action.d/sendmail*.conf; do 50 32 substituteInPlace $i \ 51 - --replace /usr/sbin/sendmail sendmail \ 52 - --replace /usr/bin/whois whois 33 + --replace /usr/sbin/sendmail sendmail 53 34 done 54 35 55 36 substituteInPlace config/filter.d/dovecot.conf \ ··· 65 46 ${python3.interpreter} setup.py install_data --install-dir=$out --root=$out 66 47 ''; 67 48 68 - postPatch = '' 69 - ${stdenv.shell} ./fail2ban-2to3 70 - ''; 71 - 72 49 postInstall = 73 50 let 74 51 sitePackages = "$out/${python3.sitePackages}"; 75 52 in 76 53 '' 54 + install -m 644 -D -t "$out/lib/systemd/system" build/fail2ban.service 55 + # Replace binary paths 56 + sed -i "s#build/bdist.*/wheel/fail2ban.*/scripts/#$out/bin/#g" $out/lib/systemd/system/fail2ban.service 57 + # Delete creating the runtime directory, systemd does that 58 + sed -i "/ExecStartPre/d" $out/lib/systemd/system/fail2ban.service 59 + 77 60 # see https://github.com/NixOS/nixpkgs/issues/4968 78 61 rm -r "${sitePackages}/etc" 79 62 ··· 88 71 description = "A program that scans log files for repeated failing login attempts and bans IP addresses"; 89 72 license = licenses.gpl2Plus; 90 73 maintainers = with maintainers; [ eelco lovek323 ]; 91 - platforms = platforms.unix; 92 74 }; 93 75 }
+4 -1
pkgs/top-level/all-packages.nix
··· 24704 24704 24705 24705 directx-headers = callPackage ../development/libraries/directx-headers { }; 24706 24706 24707 - directx-shader-compiler = callPackage ../tools/graphics/directx-shader-compiler { }; 24707 + directx-shader-compiler = callPackage ../tools/graphics/directx-shader-compiler { 24708 + # https://github.com/NixOS/nixpkgs/issues/216294 24709 + stdenv = if stdenv.cc.isGNU && stdenv.isi686 then gcc11Stdenv else stdenv; 24710 + }; 24708 24711 24709 24712 dkimproxy = callPackage ../servers/mail/dkimproxy { }; 24710 24713