From 4543d922bca21fbc5f999c3e1a7c538f98e01ee6 Mon Sep 17 00:00:00 2001 From: Vanilla Date: Sat, 30 Oct 2021 11:33:26 +0800 Subject: [PATCH 01/38] mariadb-corporation: 3.1.4 -> 3.1.14 --- pkgs/development/libraries/unixODBCDrivers/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index b766b933a656..272ac0f36057 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -29,13 +29,13 @@ mariadb = stdenv.mkDerivation rec { pname = "mariadb-connector-odbc"; - version = "3.1.4"; + version = "3.1.14"; src = fetchFromGitHub { - owner = "MariaDB"; + owner = "mariadb-corporation"; repo = "mariadb-connector-odbc"; rev = version; - sha256 = "1kbz5mng9vx89cw2sx7gsvhbv4h86zwp31fr0hxqing3cwxhkfgw"; + sha256 = "0wvy6m9qfvjii3kanf2d1rhfaww32kg0d7m57643f79qb05gd6vg"; # this driver only seems to build correctly when built against the mariadb-connect-c subrepo # (see https://github.com/NixOS/nixpkgs/issues/73258) fetchSubmodules = true; From b3e79d17887dfb82b04d7965d69556a115c470c5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Nov 2021 19:12:49 +0100 Subject: [PATCH 02/38] python3Packages.pyvolumio: 0.1.4 -> 0.1.5 --- pkgs/development/python-modules/pyvolumio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyvolumio/default.nix b/pkgs/development/python-modules/pyvolumio/default.nix index f4164b884c74..05dcbce167e8 100644 --- a/pkgs/development/python-modules/pyvolumio/default.nix +++ b/pkgs/development/python-modules/pyvolumio/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "pyvolumio"; - version = "0.1.4"; + version = "0.1.5"; disabled = pythonOlder "3.7"; @@ -15,7 +15,7 @@ buildPythonPackage rec { owner = "OnFreund"; repo = "PyVolumio"; rev = "v${version}"; - sha256 = "0c6kcz9x0n9w67h2gncyhq0dw3q17nmzipcgx59pwqnn33jan5nf"; + sha256 = "1nyvflap39cwq1cm9wwl9idvfmz1ixsl80f1dnskx22fk0lmvj4h"; }; propagatedBuildInputs = [ aiohttp ]; From e6548105b7ffbcb20d0a091be358165a21b510e2 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 9 Nov 2021 11:35:41 -0800 Subject: [PATCH 03/38] rnix-lsp: use nix (2.4) Follow-up to #144197 since nixUnstable is no longer needed for flake support. --- pkgs/development/tools/rnix-lsp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/rnix-lsp/default.nix b/pkgs/development/tools/rnix-lsp/default.nix index d5a6f962c013..327a93637fc2 100644 --- a/pkgs/development/tools/rnix-lsp/default.nix +++ b/pkgs/development/tools/rnix-lsp/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, rustPlatform, nixUnstable }: +{ lib, fetchFromGitHub, rustPlatform, nix }: rustPlatform.buildRustPackage rec { pname = "rnix-lsp"; @@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-Tw05eOIMJj+zX0fqtn6wJwolKNkYqfVuo/WO/WvYu2k="; - checkInputs = [ nixUnstable ]; + checkInputs = [ nix ]; meta = with lib; { description = "A work-in-progress language server for Nix, with syntax checking and basic completion"; From d2972cac853a7f8367f2840a8c291cc1e7f8240e Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:32:53 +0300 Subject: [PATCH 04/38] slstatus: fix cross-compilation --- pkgs/applications/misc/slstatus/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/misc/slstatus/default.nix b/pkgs/applications/misc/slstatus/default.nix index 613d2f8e78bf..5badb7f1b35a 100644 --- a/pkgs/applications/misc/slstatus/default.nix +++ b/pkgs/applications/misc/slstatus/default.nix @@ -20,6 +20,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ libX11 ]; + makeFlags = [ "CC:=$(CC)" ]; + installFlags = [ "PREFIX=$(out)" ]; meta = { From 72dbc9005ec54e47d05860122ff52c4d69b4d754 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:33:17 +0300 Subject: [PATCH 05/38] wmname: fix cross-compilation --- pkgs/applications/misc/wmname/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/wmname/default.nix b/pkgs/applications/misc/wmname/default.nix index 438bd5c5d56a..45e7cf3d8f1b 100644 --- a/pkgs/applications/misc/wmname/default.nix +++ b/pkgs/applications/misc/wmname/default.nix @@ -9,9 +9,15 @@ stdenv.mkDerivation rec { sha256 = "559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5"; }; + postPatch = '' + substituteInPlace Makefile --replace "@strip" "#@strip" + ''; + buildInputs = [ libX11 ]; - preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk''; + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; meta = { description = "Prints or set the window manager name property of the root window"; From 396b3fc00b1b5b60c695fda01456a950a8c4d02a Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:33:31 +0300 Subject: [PATCH 06/38] ii: fix cross-compilation --- pkgs/applications/networking/irc/ii/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/irc/ii/default.nix b/pkgs/applications/networking/irc/ii/default.nix index 93056ef399fb..18a9a8882fac 100644 --- a/pkgs/applications/networking/irc/ii/default.nix +++ b/pkgs/applications/networking/irc/ii/default.nix @@ -9,9 +9,9 @@ stdenv.mkDerivation rec { sha256 = "1lk8vjl7i8dcjh4jkg8h8bkapcbs465sy8g9c0chfqsywbmf3ndr"; }; - installPhase = '' - make install PREFIX=$out - ''; + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; meta = { homepage = "https://tools.suckless.org/ii/"; From 8d88d5144ac9425fe884cd114f956cbe4f2c1452 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:33:45 +0300 Subject: [PATCH 07/38] sic: fix cross-compilation --- pkgs/applications/networking/irc/sic/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/irc/sic/default.nix b/pkgs/applications/networking/irc/sic/default.nix index 129b72d847d4..705fc12510db 100644 --- a/pkgs/applications/networking/irc/sic/default.nix +++ b/pkgs/applications/networking/irc/sic/default.nix @@ -4,12 +4,15 @@ stdenv.mkDerivation rec { pname = "sic"; version = "1.2"; - makeFlags = [ "PREFIX=$(out)" ]; src = fetchurl { url = "https://dl.suckless.org/tools/sic-${version}.tar.gz"; sha256 = "ac07f905995e13ba2c43912d7a035fbbe78a628d7ba1c256f4ca1372fb565185"; }; + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; + meta = { description = "Simple IRC client"; homepage = "https://tools.suckless.org/sic/"; From b1c58be1ac6ed732c4b0ef7d4781ab52d7a6a09b Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:34:03 +0300 Subject: [PATCH 08/38] farbfeld: fix cross-compilation --- pkgs/development/libraries/farbfeld/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/farbfeld/default.nix b/pkgs/development/libraries/farbfeld/default.nix index 07957674bb31..3e1045ab852b 100644 --- a/pkgs/development/libraries/farbfeld/default.nix +++ b/pkgs/development/libraries/farbfeld/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation rec { buildInputs = [ libpng libjpeg ]; nativeBuildInputs = [ makeWrapper ]; + makeFlags = [ "CC:=$(CC)" ]; + installFlags = [ "PREFIX=$(out)" ]; postInstall = '' wrapProgram "$out/bin/2ff" --prefix PATH : "${file}/bin" From 24c9cd84c2e5d244b88b805b85b20512af37325d Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 13 Nov 2021 15:34:17 +0300 Subject: [PATCH 09/38] slock: fix cross-compilation --- pkgs/misc/screensavers/slock/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/screensavers/slock/default.nix b/pkgs/misc/screensavers/slock/default.nix index 63ca76e391f4..9f364ba520cd 100644 --- a/pkgs/misc/screensavers/slock/default.nix +++ b/pkgs/misc/screensavers/slock/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ xorgproto libX11 libXext libXrandr ]; - installFlags = [ "DESTDIR=\${out}" "PREFIX=" ]; + installFlags = [ "PREFIX=$(out)" ]; postPatch = "sed -i '/chmod u+s/d' Makefile"; @@ -24,6 +24,8 @@ stdenv.mkDerivation rec { cp ${writeText "config.def.h" conf} config.def.h ''; + makeFlags = [ "CC:=$(CC)" ]; + meta = { homepage = "https://tools.suckless.org/slock"; description = "Simple X display locker"; From 2110942bca27ab12d264980f713e3c45c0f53e2a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Nov 2021 00:04:21 +0000 Subject: [PATCH 10/38] bluetooth_battery: 1.2.0 -> 1.3.1 --- pkgs/applications/misc/bluetooth_battery/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/bluetooth_battery/default.nix b/pkgs/applications/misc/bluetooth_battery/default.nix index 19c2f3b99a4d..d9c3f5bc2a43 100644 --- a/pkgs/applications/misc/bluetooth_battery/default.nix +++ b/pkgs/applications/misc/bluetooth_battery/default.nix @@ -2,13 +2,13 @@ buildPythonApplication rec { pname = "bluetooth_battery"; - version = "1.2.0"; + version = "1.3.1"; src = fetchFromGitHub { owner = "TheWeirdDev"; repo = "Bluetooth_Headset_Battery_Level"; rev = "v${version}"; - sha256 = "121pkaq9z8p2i35cqs32aygjvf82r961w0axirpmsrbmrwq2hh6g"; + sha256 = "067qfxh228cy1x95bnjp88dx4k00ajj7ay7fz5vr1gkj2yfa203s"; }; propagatedBuildInputs = [ pybluez ]; From 2ff3291e0d74e5d2e640fe07c304fe67ca756580 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 14 Nov 2021 12:00:00 +0000 Subject: [PATCH 11/38] pdfarranger: 1.7.1 -> 1.8.0 --- pkgs/applications/misc/pdfarranger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/pdfarranger/default.nix b/pkgs/applications/misc/pdfarranger/default.nix index 5657c7f7e1a5..dd7d3f4768ef 100644 --- a/pkgs/applications/misc/pdfarranger/default.nix +++ b/pkgs/applications/misc/pdfarranger/default.nix @@ -5,13 +5,13 @@ python3Packages.buildPythonApplication rec { pname = "pdfarranger"; - version = "1.7.1"; + version = "1.8.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - sha256 = "1c2mafnz8pv32wzkc2wx4q8y2x7xffpn6ag12dj7ga5n772fb6s3"; + sha256 = "0xfxcwb24rp0kni2b4wdk6fvhqnhd6fh559ag6wdr4sspzkqwdjf"; }; nativeBuildInputs = [ From 603254bab2c8ca31fafef44dd879792510fac335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 14 Nov 2021 17:07:09 +0100 Subject: [PATCH 12/38] zsh-fast-syntax-highlighting: new upstream url --- pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix b/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix index d1791e4962f4..5b77978c0221 100644 --- a/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix +++ b/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix @@ -5,7 +5,7 @@ stdenvNoCC.mkDerivation rec { version = "1.55"; src = fetchFromGitHub { - owner = "zdharma"; + owner = "zdharma-continuum"; repo = "fast-syntax-highlighting"; rev = "v${version}"; sha256 = "0h7f27gz586xxw7cc0wyiv3bx0x3qih2wwh05ad85bh2h834ar8d"; @@ -23,7 +23,7 @@ stdenvNoCC.mkDerivation rec { meta = with lib; { description = "Syntax-highlighting for Zshell"; - homepage = "https://github.com/zdharma/fast-syntax-highlighting"; + homepage = "https://github.com/zdharma-continuum/fast-syntax-highlighting"; license = licenses.bsd3; platforms = platforms.unix; }; From 962807bf9e66d89107b09d328d774b45e8169983 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sun, 14 Nov 2021 14:42:16 -0500 Subject: [PATCH 13/38] kodi.packages.libretro-mgba: init at 0.9.2.31 --- .../kodi-packages/libretro-mgba/default.nix | 31 +++++++++++++++++++ pkgs/top-level/kodi-packages.nix | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/video/kodi-packages/libretro-mgba/default.nix diff --git a/pkgs/applications/video/kodi-packages/libretro-mgba/default.nix b/pkgs/applications/video/kodi-packages/libretro-mgba/default.nix new file mode 100644 index 000000000000..a58f1c51b295 --- /dev/null +++ b/pkgs/applications/video/kodi-packages/libretro-mgba/default.nix @@ -0,0 +1,31 @@ +{ lib, rel, buildKodiBinaryAddon, fetchFromGitHub, libretro, mgba }: + +buildKodiBinaryAddon rec { + pname = "kodi-libretro-mgba"; + namespace = "game.libretro.mgba"; + version = "0.9.2.31"; + + src = fetchFromGitHub { + owner = "kodi-game"; + repo = "game.libretro.mgba"; + rev = "${version}-${rel}"; + sha256 = "sha256-eZLuNhLwMTtzpLGkymc9cLC83FQJWZ2ZT0iyz4sY4EA="; + }; + + extraCMakeFlags = [ + "-DMGBA_LIB=${mgba}/lib/retroarch/cores/mgba_libretro.so" + ]; + + extraBuildInputs = [ mgba ]; + propagatedBuildInputs = [ + libretro + ]; + + meta = with lib; { + homepage = "https://github.com/kodi-game/game.libretro.mgba"; + description = "mGBA for Kodi"; + platforms = platforms.all; + license = licenses.gpl2Only; + maintainers = teams.kodi.members; + }; +} diff --git a/pkgs/top-level/kodi-packages.nix b/pkgs/top-level/kodi-packages.nix index e7c848ab5560..fc6249334c53 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -3,7 +3,7 @@ with lib; let - inherit (libretro) genesis-plus-gx snes9x; + inherit (libretro) genesis-plus-gx mgba snes9x; in let self = rec { @@ -76,6 +76,8 @@ let self = rec { libretro-genplus = callPackage ../applications/video/kodi-packages/libretro-genplus { inherit genesis-plus-gx; }; + libretro-mgba = callPackage ../applications/video/kodi-packages/libretro-mgba { inherit mgba; }; + libretro-snes9x = callPackage ../applications/video/kodi-packages/libretro-snes9x { inherit snes9x; }; jellyfin = callPackage ../applications/video/kodi-packages/jellyfin { }; From 04b69e480eb09ce75c0b41fcdc955dce93ed6b7a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Nov 2021 05:06:01 +0000 Subject: [PATCH 14/38] python38Packages.pytelegrambotapi: 4.1.1 -> 4.2.0 --- pkgs/development/python-modules/pyTelegramBotAPI/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix index 6d1dca6b699f..4c1723edd8ef 100644 --- a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix +++ b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "pyTelegramBotAPI"; - version = "4.1.1"; + version = "4.2.0"; src = fetchPypi { inherit pname version; - sha256 = "cc8011ca05301653f2e5c2d02eadff0e882b611841a76f9e5b911994899df49e"; + sha256 = "05f85dacbcf0bdf2459698bab4325f3a699d1c04bc61581627d76d075c3d5488"; }; propagatedBuildInputs = [ requests ]; From e682fd7c83d16c35de979ecd419115c98a260601 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Mon, 15 Nov 2021 09:20:52 +0000 Subject: [PATCH 15/38] steam: 1.0.0.72 -> 1.0.0.73 --- pkgs/games/steam/steam.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/steam/steam.nix b/pkgs/games/steam/steam.nix index 74ee8778b393..fdc0058a2eee 100644 --- a/pkgs/games/steam/steam.nix +++ b/pkgs/games/steam/steam.nix @@ -2,7 +2,7 @@ let traceLog = "/tmp/steam-trace-dependencies.log"; - version = "1.0.0.72"; + version = "1.0.0.73"; in stdenv.mkDerivation { pname = "steam-original"; @@ -10,7 +10,7 @@ in stdenv.mkDerivation { src = fetchurl { url = "https://repo.steampowered.com/steam/pool/steam/s/steam/steam_${version}.tar.gz"; - sha256 = "0l54ljnlnx289i1ssnss78251vyga726dnzsrhgnxwn1p1125m45"; + sha256 = "sha256-uVO6D1K8zGlq12lrIs7aTQEVnj1bk1P4wRUtkPWkNZE="; }; makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; From 83f892c511f0b647302d03af35955ba28d816073 Mon Sep 17 00:00:00 2001 From: Artturin Date: Mon, 15 Nov 2021 16:28:22 +0200 Subject: [PATCH 16/38] nixos/lib: add /usr to pathsNeededForBoot if /usr is split from root then it has to be mounted at boot See https://github.com/NixOS/nixpkgs/issues/146115 --- nixos/lib/utils.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/utils.nix b/nixos/lib/utils.nix index 439b627dc385..f1fa9f07a974 100644 --- a/nixos/lib/utils.nix +++ b/nixos/lib/utils.nix @@ -10,7 +10,7 @@ rec { # Check whenever fileSystem is needed for boot. NOTE: Make sure # pathsNeededForBoot is closed under the parent relationship, i.e. if /a/b/c # is in the list, put /a and /a/b in as well. - pathsNeededForBoot = [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/var/lib/nixos" "/etc" ]; + pathsNeededForBoot = [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/var/lib/nixos" "/etc" "/usr" ]; fsNeededForBoot = fs: fs.neededForBoot || elem fs.mountPoint pathsNeededForBoot; # Check whenever `b` depends on `a` as a fileSystem From f8a8ed3a2bf2f0b6011e75bdad5098c96658397e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 Nov 2021 16:28:36 +0100 Subject: [PATCH 17/38] python3Packages.total-connect-client: 2021.11.2 -> 2021.11.4 --- .../python-modules/total-connect-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/total-connect-client/default.nix b/pkgs/development/python-modules/total-connect-client/default.nix index fea974adfdee..bcf4910b0d44 100644 --- a/pkgs/development/python-modules/total-connect-client/default.nix +++ b/pkgs/development/python-modules/total-connect-client/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "total-connect-client"; - version = "2021.11.2"; + version = "2021.11.4"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "craigjmidwinter"; repo = "total-connect-client"; rev = version; - sha256 = "sha256-JXau+NmulnZ0gg2XsXD9EFv3j2FBMqVqzpT1XGvMZuA="; + sha256 = "sha256-iggxKefrVZP4ljf8jGRrCAq0/xQLsr54L42KkdjBqgI="; }; propagatedBuildInputs = [ From 621109350df973691eec50ba7ad5b022f56c0aab Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 15 Nov 2021 12:26:09 -0500 Subject: [PATCH 18/38] hck: 0.6.6 -> 0.6.7 --- pkgs/tools/text/hck/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/text/hck/default.nix b/pkgs/tools/text/hck/default.nix index 00ab04a56c66..88ad2308913a 100644 --- a/pkgs/tools/text/hck/default.nix +++ b/pkgs/tools/text/hck/default.nix @@ -3,27 +3,26 @@ , fetchFromGitHub , cmake , stdenv -, libiconv , CoreFoundation , Security }: rustPlatform.buildRustPackage rec { pname = "hck"; - version = "0.6.6"; + version = "0.6.7"; src = fetchFromGitHub { owner = "sstadick"; repo = pname; rev = "v${version}"; - sha256 = "sha256-DUFJZEtJM5Sv41zJvSZ8KsNWFzlictM2T1wS7VxPL04="; + sha256 = "sha256-m4YVz3kh4nOkdf6PbbyxjKacUVKdFQet76CMrFYMRHI="; }; - cargoSha256 = "sha256-kubQL+p7J2koPDOje5wMxKDeCY4yi0kupfHsJCKYf44="; + cargoSha256 = "sha256-4z1kHSev+5+0wpYFEGvvafB50Wz1wr6zObCjvHR9FPU="; nativeBuildInputs = [ cmake ]; - buildInputs = lib.optionals stdenv.isDarwin [ libiconv CoreFoundation Security ]; + buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation Security ]; meta = with lib; { description = "A close to drop in replacement for cut that can use a regex delimiter instead of a fixed string"; From 5153a6cf192bf840538b969da19af30a4a96e869 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Thu, 11 Nov 2021 07:53:01 +0100 Subject: [PATCH 19/38] gradle: Clean up --- .../tools/build-managers/gradle/default.nix | 45 +++++++------------ .../gradle/gradle-4.10.3-spec.nix | 5 +++ .../gradle/gradle-5.6.4-spec.nix | 5 +++ pkgs/top-level/all-packages.nix | 3 +- 4 files changed, 28 insertions(+), 30 deletions(-) create mode 100644 pkgs/development/tools/build-managers/gradle/gradle-4.10.3-spec.nix create mode 100644 pkgs/development/tools/build-managers/gradle/gradle-5.6.4-spec.nix diff --git a/pkgs/development/tools/build-managers/gradle/default.nix b/pkgs/development/tools/build-managers/gradle/default.nix index 877f28419055..443e91325af1 100644 --- a/pkgs/development/tools/build-managers/gradle/default.nix +++ b/pkgs/development/tools/build-managers/gradle/default.nix @@ -1,21 +1,20 @@ { lib, stdenv, fetchurl, unzip, jdk, java ? jdk, makeWrapper }: -let - gradleSpec = { version, nativeVersion, sha256 }: rec { - inherit nativeVersion; - name = "gradle-${version}"; +rec { + gradleGen = { version, nativeVersion, sha256 }: stdenv.mkDerivation { + pname = "gradle"; + inherit version; + src = fetchurl { inherit sha256; - url = "https://services.gradle.org/distributions/${name}-bin.zip"; + url = "https://services.gradle.org/distributions/gradle-${version}-bin.zip"; }; - }; -in -rec { - gradleGen = { name, src, nativeVersion }: stdenv.mkDerivation { - inherit name src nativeVersion; dontBuild = true; + nativeBuildInputs = [ makeWrapper unzip ]; + buildInputs = [ java ]; + installPhase = '' mkdir -pv $out/lib/gradle/ cp -rv lib/ $out/lib/gradle/ @@ -44,9 +43,6 @@ rec { echo ${stdenv.cc.cc} > $out/nix-support/manual-runtime-dependencies ''; - nativeBuildInputs = [ makeWrapper unzip ]; - buildInputs = [ java ]; - meta = with lib; { description = "Enterprise-grade build system"; longDescription = '' @@ -57,7 +53,9 @@ rec { between the flexibility of Ant and the convenience of a build-by-convention behavior. ''; - homepage = "http://www.gradle.org/"; + homepage = "https://www.gradle.org/"; + changelog = "https://docs.gradle.org/${version}/release-notes.html"; + downloadPage = "https://gradle.org/next-steps/?version=${version}"; license = licenses.asl20; platforms = platforms.unix; maintainers = with maintainers; [ lorenzleutgeb ]; @@ -65,20 +63,11 @@ rec { }; gradle_latest = gradle_7_3; - gradle_7_3 = gradleGen (gradleSpec (import ./gradle-7.3-spec.nix)); - gradle_6_9 = gradleGen (gradleSpec (import ./gradle-6.9.1-spec.nix)); - # NOTE: No GitHub Release for this release, so update.sh does not work. - gradle_5_6 = gradleGen (gradleSpec { - version = "5.6.4"; - nativeVersion = "0.18"; - sha256 = "03d86bbqd19h9xlanffcjcy3vg1k5905vzhf9mal9g21603nfc0z"; - }); + gradle_7_3 = gradleGen (import ./gradle-7.3-spec.nix); + gradle_6_9 = gradleGen (import ./gradle-6.9.1-spec.nix); - # NOTE: No GitHub Release for this release, so update.sh does not work. - gradle_4_10 = gradleGen (gradleSpec { - version = "4.10.3"; - nativeVersion = "0.14"; - sha256 = "0vhqxnk0yj3q9jam5w4kpia70i4h0q4pjxxqwynh3qml0vrcn9l6"; - }); + # NOTE: No GitHub Release for the following versions. Update.sh will not work. + gradle_5_6 = gradleGen (import ./gradle-5.6.4-spec.nix); + gradle_4_10 = gradleGen (import ./gradle-4.10.3-spec.nix); } diff --git a/pkgs/development/tools/build-managers/gradle/gradle-4.10.3-spec.nix b/pkgs/development/tools/build-managers/gradle/gradle-4.10.3-spec.nix new file mode 100644 index 000000000000..598deab87e06 --- /dev/null +++ b/pkgs/development/tools/build-managers/gradle/gradle-4.10.3-spec.nix @@ -0,0 +1,5 @@ +{ + version = "4.10.3"; + nativeVersion = "0.14"; + sha256 = "0vhqxnk0yj3q9jam5w4kpia70i4h0q4pjxxqwynh3qml0vrcn9l6"; +} diff --git a/pkgs/development/tools/build-managers/gradle/gradle-5.6.4-spec.nix b/pkgs/development/tools/build-managers/gradle/gradle-5.6.4-spec.nix new file mode 100644 index 000000000000..41e567c1449c --- /dev/null +++ b/pkgs/development/tools/build-managers/gradle/gradle-5.6.4-spec.nix @@ -0,0 +1,5 @@ +{ + version = "5.6.4"; + nativeVersion = "0.18"; + sha256 = "03d86bbqd19h9xlanffcjcy3vg1k5905vzhf9mal9g21603nfc0z"; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 83e3dba01778..eb4e939f3d07 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14597,8 +14597,7 @@ with pkgs; java = jdk8; # TODO: upgrade https://github.com/NixOS/nixpkgs/pull/89731 }; gradle = res.gradleGen.gradle_latest; - gradle_4_10 = res.gradleGen.gradle_4_10; - gradle_4 = gradle_4_10; + gradle_4 = res.gradleGen.gradle_4_10; gradle_5 = res.gradleGen.gradle_5_6; gradle_6 = res.gradleGen.gradle_6_9; gradle_7 = res.gradleGen.gradle_7_3; From 9e7f498eafc0469b68fdf8dde8d9412c830def5c Mon Sep 17 00:00:00 2001 From: toonn Date: Mon, 15 Nov 2021 19:38:40 +0100 Subject: [PATCH 20/38] jupyter_server: Patch unicode test for Darwin (#145993) The test relies on creating and then reading files with unicode names to/from disk. Apple's HFS+, the default file system until recently, is unicode-normalizing with normal form D (NFD). So not all unicode file names round-trip. This patch implements one imperfect solution. ZHF: #144627 --- .../development/python-modules/jupyter_server/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/jupyter_server/default.nix b/pkgs/development/python-modules/jupyter_server/default.nix index 0e1469e0940e..2cb7d06b646a 100644 --- a/pkgs/development/python-modules/jupyter_server/default.nix +++ b/pkgs/development/python-modules/jupyter_server/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , buildPythonPackage +, fetchpatch , fetchPypi , pythonOlder , pytestCheckHook @@ -34,6 +35,13 @@ buildPythonPackage rec { sha256 = "c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95"; }; + patches = [ (fetchpatch + { name = "Normalize-file-name-and-path.patch"; + url = "https://github.com/jupyter-server/jupyter_server/pull/608/commits/345e26cdfd78651954b68708fa44119c2ac0dbd5.patch"; + sha256 = "1kqz3dyh2w0h1g1fbvqa13q17hb6y32694rlaasyg213mq6g4k32"; + }) + ]; + propagatedBuildInputs = [ argon2_cffi jinja2 From d25def1a8472f315030a3bc113c6b9f5be8f76a4 Mon Sep 17 00:00:00 2001 From: Mrinal Purohit Date: Mon, 15 Nov 2021 17:31:51 +0530 Subject: [PATCH 21/38] broot: 1.6.6 -> 1.7.1 --- pkgs/tools/misc/broot/default.nix | 9 +++++---- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix index 96788f8c7319..9817df780ea2 100644 --- a/pkgs/tools/misc/broot/default.nix +++ b/pkgs/tools/misc/broot/default.nix @@ -9,19 +9,20 @@ , oniguruma , libiconv , Security +, libxcb , zlib }: rustPlatform.buildRustPackage rec { pname = "broot"; - version = "1.6.6"; + version = "1.7.1"; src = fetchCrate { inherit pname version; - sha256 = "sha256-Aezi005CKhGwCRZ2HwxFRRORBvVoZEzljTcKQZ8b8XI="; + sha256 = "sha256-Gg60jeDfHNKUYynJRgN4oLWhcdApWUdO5kRwl5hrFMM="; }; - cargoHash = "sha256-d06lvS5ajXPY/AwmE2rkya82mAOeEv04EtBElDvX2+I="; + cargoHash = "sha256-xsTlFfgX3Np3M/RqmK30DZBCrY1OXnEkjqBDI+ffd/U="; nativeBuildInputs = [ installShellFiles @@ -29,7 +30,7 @@ rustPlatform.buildRustPackage rec { pkg-config ]; - buildInputs = [ libgit2 oniguruma ] ++ lib.optionals stdenv.isDarwin [ + buildInputs = [ libgit2 oniguruma libxcb ] ++ lib.optionals stdenv.isDarwin [ libiconv Security zlib diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 83e3dba01778..6e8147a227b1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2244,6 +2244,7 @@ with pkgs; broot = callPackage ../tools/misc/broot { inherit (darwin.apple_sdk.frameworks) Security; + inherit (xorg) libxcb; }; bruteforce-luks = callPackage ../tools/security/bruteforce-luks { }; From 702b5f6dc9d9e411406a59ccd3d5274d9ea29e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Mon, 15 Nov 2021 20:09:07 +0100 Subject: [PATCH 22/38] gtk4: 4.4.0 -> 4.4.1 https://gitlab.gnome.org/GNOME/gtk/-/blob/4.4.1/NEWS --- pkgs/development/libraries/gtk/4.x.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gtk/4.x.nix b/pkgs/development/libraries/gtk/4.x.nix index 78d9174d0953..38df17765c86 100644 --- a/pkgs/development/libraries/gtk/4.x.nix +++ b/pkgs/development/libraries/gtk/4.x.nix @@ -59,7 +59,7 @@ in stdenv.mkDerivation rec { pname = "gtk4"; - version = "4.4.0"; + version = "4.4.1"; outputs = [ "out" "dev" ] ++ lib.optionals x11Support [ "devdoc" ]; outputBin = "dev"; @@ -71,7 +71,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnome/sources/gtk/${lib.versions.majorMinor version}/gtk-${version}.tar.xz"; - sha256 = "4KFQj0QWhsOiDf7EivUzsZpLLgF8GOruMdzNt9KSUFs="; + sha256 = "D6ramD3GsLxAnLNMFxPB8yZ+Z8CT+GseOxfbYQCj3fQ="; }; nativeBuildInputs = [ From 322841df2c69ac87908beb61dc0481deae2cd37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Mon, 15 Nov 2021 19:24:42 +0000 Subject: [PATCH 23/38] ledger-live-desktop: 2.34.4 -> 2.35.0 --- pkgs/applications/blockchains/ledger-live-desktop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/blockchains/ledger-live-desktop/default.nix b/pkgs/applications/blockchains/ledger-live-desktop/default.nix index 636d377ebe48..ac24baa934a4 100644 --- a/pkgs/applications/blockchains/ledger-live-desktop/default.nix +++ b/pkgs/applications/blockchains/ledger-live-desktop/default.nix @@ -2,12 +2,12 @@ let pname = "ledger-live-desktop"; - version = "2.34.4"; + version = "2.35.0"; name = "${pname}-${version}"; src = fetchurl { url = "https://github.com/LedgerHQ/${pname}/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage"; - sha256 = "00zl7ywmkbhwzkj7p618rin5pd0ix8cas5q1b8ka6ynw4wlg3w5c"; + hash = "sha256-o2XGBTqyHqQ/yq54B0GBFEk35Zxt2ZWGZCTjbEbKqiw="; }; appimageContents = appimageTools.extractType2 { From de1a7566119877d4cba16d184d0bbf4f1babfc7b Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Mon, 15 Nov 2021 20:14:01 +0000 Subject: [PATCH 24/38] electron_15: 15.3.0 -> 15.3.1 https://github.com/electron/electron/releases/tag/v15.3.1 --- pkgs/development/tools/electron/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/tools/electron/default.nix b/pkgs/development/tools/electron/default.nix index 38f1827e5126..d688b893ff9b 100644 --- a/pkgs/development/tools/electron/default.nix +++ b/pkgs/development/tools/electron/default.nix @@ -135,13 +135,13 @@ rec { headers = "1y289vr8bws3z6gmhaj3avz95rdhc8gd3rc7bi40jv9j1pnlsd3m"; }; - electron_15 = mkElectron "15.3.0" { - armv7l-linux = "dfe2851ef94c17eb905cd8cf00b585be072e20a79a02c0c42585a0f51b8cdb20"; - aarch64-linux = "e0bb8d663dfbe8b65b9e38d4af992a919adc639acfb8748d95ca5b9bbcd7a83c"; - x86_64-linux = "7cb9c6c9c61848f7d82aaac47ca97bb78c6061e73b176fd3a323652c07335087"; - i686-linux = "289ef7d53c440a576839a4ee092284009235d740404ea07e6bf82f33254ae8df"; - x86_64-darwin = "667da0d56bab968d28c41c1f53b901fb685e56d1f56faf33912a240a0397bab5"; - aarch64-darwin = "9cf5caafc7cbf0e91483e24d5a696b81618d293a5eccd4d122c57baaab88724c"; - headers = "0jicbplni608cjxwhlrzxkxc9w9b4h6zqssilc9b0yr73jq1fyrd"; + electron_15 = mkElectron "15.3.1" { + armv7l-linux = "b3e73ad174f692da36a4e1d2cd6b849080ee891027e37126868c88e6b89d82ac"; + aarch64-linux = "35ebfeeedcb71bd256c24550c75b9515fdda2db7a2ee1deb1097040480a26198"; + x86_64-linux = "941330103b9ab66a0195dd86e1503b5d2087f93a0b1e8453d8270d47cfe2bfc2"; + i686-linux = "1eeef6b189b4305845a0832b98efcba773c329e351181debe003562a7885afff"; + x86_64-darwin = "a91b089b5dc5b1279966511344b805ec84869b6cd60af44f800b363bba25b915"; + aarch64-darwin = "89fafef20426c0a3a2326172d222d29fc5d24d64c8910b7abddf61bd2c6a6700"; + headers = "0f665x7yp0xz1p1cl8c3vcw3k7g53c13rkbz8cz3phl6v3n1s1w0"; }; } From 322808de0fd205c64b4eec18491d7069fb94b712 Mon Sep 17 00:00:00 2001 From: TredwellGit Date: Mon, 15 Nov 2021 20:14:28 +0000 Subject: [PATCH 25/38] electron_14: 14.2.0 -> 14.2.1 https://github.com/electron/electron/releases/tag/v14.2.1 --- pkgs/development/tools/electron/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/tools/electron/default.nix b/pkgs/development/tools/electron/default.nix index d688b893ff9b..ff61c109b671 100644 --- a/pkgs/development/tools/electron/default.nix +++ b/pkgs/development/tools/electron/default.nix @@ -125,14 +125,14 @@ rec { headers = "1bd87c74863w0sjs8gfxl62kjjscc56dmmw85vhwz01s4niksr02"; }; - electron_14 = mkElectron "14.2.0" { - armv7l-linux = "a1357716ebda8d7856f233c86a8cbaeccad1c83f1d725d260b0a6510c47042a2"; - aarch64-linux = "b1f4885c3ad816d89446f64a87b78d5139a27fecbf6317808479bede6fd94ae1"; - x86_64-linux = "b2faec4744edb20e889c3c85af685c2a6aef90bfff58f55b90038a991cd7691f"; - i686-linux = "9207af6e3a24dfcc76fded20f26512bcb20f6b652295a4ad3458dc10fd2d7d6e"; - x86_64-darwin = "d647d658c8c2ec4a69c071e791cf7e823320860f987121bd7390978aecacb073"; - aarch64-darwin = "f5a7e52b639b94cf9b2ec53969c8014c6d299437c65d98c33d8e5ca812fbfd48"; - headers = "1y289vr8bws3z6gmhaj3avz95rdhc8gd3rc7bi40jv9j1pnlsd3m"; + electron_14 = mkElectron "14.2.1" { + armv7l-linux = "d95b5055a53ffb4c502885c3b35f0b938c1be3a7b77e378587d99e6ce009e5d5"; + aarch64-linux = "52d71b92606b639881b82efd369e4cc3fd01cade476cbb25cafb22e05a8c423b"; + x86_64-linux = "820271f62c17cdfe61ed7bce4eff1e82c375d317b7e8b47f965ce9fa863e5994"; + i686-linux = "478efa82bf017f65fda6f90405d3ccc6adb073bd4b2ab2985e550b5ac6135cba"; + x86_64-darwin = "d1684580a1c6e800e488428cc15cb223e9615a456784a7cb86ec116a0afafb85"; + aarch64-darwin = "b40c8a5b4680d509e1ab799d5a0bee19cebfc5c948196b35d9a92e52ebc8fafd"; + headers = "14yaw3kml2kmi7sns8z32kv4cd8anyj5nd7rfxcg74hj2pbl9dvp"; }; electron_15 = mkElectron "15.3.1" { From d13480917ae9e28b75da3d1f2de66b63d3a30d97 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Thu, 21 Oct 2021 19:48:05 +0100 Subject: [PATCH 26/38] strongswan: 5.8.1 -> 5.9.4 remove two now-included patches, add new nixos module parameter ca_id --- .../strongswan-swanctl/swanctl-params.nix | 10 ++++++++++ pkgs/tools/networking/strongswan/default.nix | 19 +++---------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix index 8ae62931a8f9..cca61b9ce930 100644 --- a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix +++ b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix @@ -569,6 +569,16 @@ in { these sections offer more flexibility. ''; + ca_id = mkOptionalStrParam '' + Identity in CA certificate to accept for authentication. The specified + identity must be contained in one (intermediate) CA of the remote peer + trustchain, either as subject or as subjectAltName. This has the same + effect as specifying cacerts to force clients under + a CA to specific connections; it does not require the CA certificate + to be available locally, and can be received from the peer during the + IKE exchange. + ''; + cacerts = mkCommaSepListParam [] '' List of CA certificates to accept for authentication. The certificates may use a relative path from the diff --git a/pkgs/tools/networking/strongswan/default.nix b/pkgs/tools/networking/strongswan/default.nix index 601446abb95c..9edc1c79fb0c 100644 --- a/pkgs/tools/networking/strongswan/default.nix +++ b/pkgs/tools/networking/strongswan/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchpatch, fetchFromGitHub +{ lib, stdenv, fetchFromGitHub , pkg-config, autoreconfHook, perl, gperf, bison, flex , gmp, python3, iptables, ldns, unbound, openssl, pcsclite, glib , openresolv @@ -17,13 +17,13 @@ with lib; stdenv.mkDerivation rec { pname = "strongswan"; - version = "5.8.1"; # Make sure to also update when upgrading! + version = "5.9.4"; # Make sure to also update when upgrading! src = fetchFromGitHub { owner = "strongswan"; repo = "strongswan"; rev = version; - sha256 = "1a1hw2jsbwvkdhhxjmq87hz13ivbgvqwks1q3adz14mqgbc64snd"; + sha256 = "1y1gs232x7hsbccjga9nbkf4bbi5wxazlkg00qd2v1nz86sfy4cd"; }; dontPatchELF = true; @@ -40,19 +40,6 @@ stdenv.mkDerivation rec { ./ext_auth-path.patch ./firewall_defaults.patch ./updown-path.patch - - # Don't use etc/dbus-1/system.d - (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/strongswan/strongswan/pull/150.patch"; - sha256 = "1irfxb99blb8v3hs0kmlhzkkwbmds1p0gq319z8lmacz36cgyj2c"; - }) - - # fix build with -fno-common tollchain - (fetchpatch { - name = "fno-common.patch"; - url = "https://git.strongswan.org/?p=strongswan.git;a=patch;h=91c6387e69c09beaa9b9ca1e28471751a834fc24"; - sha256 = "0jp9walxwffp5cl7q0hb80h3s2gdj1nn3n8bvnbmwgh2s6pi148f"; - }) ]; postPatch = optionalString stdenv.isLinux '' From a39908a7cb0e01c7d3c2f8a9199b14de6209f687 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Mon, 15 Nov 2021 22:11:28 +0100 Subject: [PATCH 27/38] chromium: 95.0.4638.69 -> 96.0.4664.45 https://chromereleases.googleblog.com/2021/11/stable-channel-update-for-desktop.html This update includes 25 security fixes. CVEs: CVE-2021-38007 CVE-2021-38008 CVE-2021-38009 CVE-2021-38006 CVE-2021-38005 CVE-2021-38010 CVE-2021-38011 CVE-2021-38012 CVE-2021-38013 CVE-2021-38014 CVE-2021-38015 CVE-2021-38016 CVE-2021-38017 CVE-2021-38018 CVE-2021-38019 CVE-2021-38020 CVE-2021-38021 CVE-2021-38022 --- .../browsers/chromium/upstream-info.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 624dde9e1702..ca73b620cfbb 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -1,20 +1,20 @@ { "stable": { - "version": "95.0.4638.69", - "sha256": "1rzg48mbd5n75nq2rfwknyxpmfrddds199ic82c736kcgirpv8rq", - "sha256bin64": "1jhxm12sdlgvgnny0p56xsfyxd78mwn9qwc20c33qfvwxrzp9ajp", + "version": "96.0.4664.45", + "sha256": "01q4fsf2cbx6g9nnaihvc5jj3ap8jq2gf16pnhf7ixzbhgcnm328", + "sha256bin64": "0546i4yd1jahv088hjxpq0jc393pscvl5ap3s2qw5jrybliyfd2g", "deps": { "gn": { - "version": "2021-08-11", + "version": "2021-09-24", "url": "https://gn.googlesource.com/gn", - "rev": "69ec4fca1fa69ddadae13f9e6b7507efa0675263", - "sha256": "031znmkbm504iim5jvg3gmazj4qnkfc7zg8aymjsij18fhf7piz0" + "rev": "0153d369bbccc908f4da4993b1ba82728055926a", + "sha256": "0y4414h8jqsbz5af6pn91c0vkfp4s281s85g992xfyl785c5zbsi" } }, "chromedriver": { - "version": "95.0.4638.54", - "sha256_linux": "0p228x7w423p3zqwfdba2jj4x4gkxz4267qzzswpba335p3k1nyk", - "sha256_darwin": "1yxi8c18fa07w8kdm63v4663lhgx1y56957bkqb7hf459bzz594l" + "version": "96.0.4664.35", + "sha256_linux": "0iq129a4mj4sjs08s68n82wd8563sw8196xda27wk3pfpprr23db", + "sha256_darwin": "1prc7zbgnljqz2d89clpk5c0y48r79zmb9in4vinf3j6p2rxn0vy" } }, "beta": { From e30f006b3c6fc9cc8065d43d75b5dc2e70e01023 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Mon, 15 Nov 2021 21:06:16 +0000 Subject: [PATCH 28/38] cbqn-standalone: fix installPhase on darwin --- pkgs/development/interpreters/bqn/cbqn/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/bqn/cbqn/default.nix b/pkgs/development/interpreters/bqn/cbqn/default.nix index 44d63ace738b..4d872f0084e4 100644 --- a/pkgs/development/interpreters/bqn/cbqn/default.nix +++ b/pkgs/development/interpreters/bqn/cbqn/default.nix @@ -52,8 +52,9 @@ stdenv.mkDerivation rec { mkdir -p $out/bin/ cp BQN -t $out/bin/ - ln -s $out/bin/BQN $out/bin/bqn - ln -s $out/bin/BQN $out/bin/cbqn + # note guard condition for case-insensitive filesystems + [ -e $out/bin/bqn ] || ln -s $out/bin/BQN $out/bin/bqn + [ -e $out/bin/cbqn ] || ln -s $out/bin/BQN $out/bin/cbqn runHook postInstall ''; From 7adb11cf580fc75faa864a640f1204e7fb874463 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 13 Nov 2021 13:51:56 +0100 Subject: [PATCH 29/38] fcft: 2.4.5 -> 2.5.0 https://codeberg.org/dnkl/fcft/releases/tag/2.4.6 https://codeberg.org/dnkl/fcft/releases/tag/2.5.0 Replace withHarfBuzz with withShapingTypes which allows us to more accurately represent the current feature flag situation upstream. Additionally test all non-default configurations via passthru.tests. Settings for shapingType: * `[ "grapheme" ]`: depend on HarfBuzz, like withHarfBuzz before * `[ "grapheme" "run" ]`: depend on HarfBuzz and utf8proc. This is the same as `[ "run" ]` at the moment which may change in the future. * `[]`: No text shaping support, no additional dependencies --- pkgs/development/libraries/fcft/default.nix | 31 +++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/fcft/default.nix b/pkgs/development/libraries/fcft/default.nix index 8f2d56fad285..2101ee6dd42b 100644 --- a/pkgs/development/libraries/fcft/default.nix +++ b/pkgs/development/libraries/fcft/default.nix @@ -1,39 +1,54 @@ { stdenv, lib, fetchFromGitea, pkg-config, meson, ninja, scdoc , freetype, fontconfig, pixman, tllist, check -, withHarfBuzz ? true -, harfbuzz +# Text shaping methods to enable, empty list disables all text shaping. +# See `availableShapingTypes` or upstream meson_options.txt for available types. +, withShapingTypes ? [ "grapheme" "run" ] +, harfbuzz, utf8proc +, fcft # for passthru.tests }: let + # Needs to be reflect upstream meson_options.txt + availableShapingTypes = [ + "grapheme" + "run" + ]; + # Courtesy of sternenseemann and FRidh, commit c9a7fdfcfb420be8e0179214d0d91a34f5974c54 mesonFeatureFlag = opt: b: "-D${opt}=${if b then "enabled" else "disabled"}"; in stdenv.mkDerivation rec { pname = "fcft"; - version = "2.4.5"; + version = "2.5.0"; src = fetchFromGitea { domain = "codeberg.org"; owner = "dnkl"; repo = "fcft"; rev = version; - sha256 = "0z4bqap88pydkgcxrsvm3fmcyhi9x7z8knliarvdcvqlk7qnyzfh"; + sha256 = "0agqldh68hn898d3f6k99kjbz8had5j5k0jyvi71d4k9vhx8cy7c"; }; depsBuildBuild = [ pkg-config ]; nativeBuildInputs = [ pkg-config meson ninja scdoc ]; buildInputs = [ freetype fontconfig pixman tllist ] - ++ lib.optional withHarfBuzz harfbuzz; + ++ lib.optionals (withShapingTypes != []) [ harfbuzz ] + ++ lib.optionals (builtins.elem "run" withShapingTypes) [ utf8proc ]; checkInputs = [ check ]; mesonBuildType = "release"; - mesonFlags = [ - (mesonFeatureFlag "text-shaping" withHarfBuzz) - ]; + mesonFlags = builtins.map (t: + mesonFeatureFlag "${t}-shaping" (lib.elem t withShapingTypes) + ) availableShapingTypes; doCheck = true; + passthru.tests = { + noShaping = fcft.override { withShapingTypes = []; }; + onlyGraphemeShaping = fcft.override { withShapingTypes = [ "grapheme" ]; }; + }; + meta = with lib; { homepage = "https://codeberg.org/dnkl/fcft"; changelog = "https://codeberg.org/dnkl/fcft/releases/tag/${version}"; From debf4fc929cc937562b06607c1a3d81f92ee3a77 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 1 Nov 2021 12:55:18 +0100 Subject: [PATCH 30/38] gnat: 9 -> 11 Update the default GNAT version from 9 to 11, as GNAT >= 11 is required to compile the 22.* AdaCore libraries. To allow this, we need to pick a patch from ghdl's master fixing a compilation problem with GNAT 11. --- .../manual/from_md/release-notes/rl-2111.section.xml | 7 +++++++ nixos/doc/manual/release-notes/rl-2111.section.md | 3 +++ pkgs/development/compilers/ghdl/default.nix | 11 ++++++++++- pkgs/top-level/all-packages.nix | 3 +-- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml index 0aa30c2b1fec..a64379b19ef6 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml @@ -1358,6 +1358,13 @@ Superuser created successfully. services.ddclient.passwordFile. + + + The default GNAT version has been changed: The + gnat attribute now points to + gnat11 instead of gnat9. + +
diff --git a/nixos/doc/manual/release-notes/rl-2111.section.md b/nixos/doc/manual/release-notes/rl-2111.section.md index 0eb7bf74197c..9a76b4cca449 100644 --- a/nixos/doc/manual/release-notes/rl-2111.section.md +++ b/nixos/doc/manual/release-notes/rl-2111.section.md @@ -404,6 +404,9 @@ In addition to numerous new and upgraded packages, this release has the followin - The `services.ddclient.password` option was removed, and replaced with `services.ddclient.passwordFile`. +- The default GNAT version has been changed: The `gnat` attribute now points to `gnat11` + instead of `gnat9`. + ## Other Notable Changes {#sec-release-21.11-notable-changes} diff --git a/pkgs/development/compilers/ghdl/default.nix b/pkgs/development/compilers/ghdl/default.nix index e7886eb8f5ed..266ee97a2e90 100644 --- a/pkgs/development/compilers/ghdl/default.nix +++ b/pkgs/development/compilers/ghdl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, callPackage, gnat, zlib, llvm, lib +{ stdenv, fetchFromGitHub, fetchpatch, callPackage, gnat, zlib, llvm, lib , backend ? "mcode" }: assert backend == "mcode" || backend == "llvm"; @@ -14,6 +14,15 @@ stdenv.mkDerivation rec { sha256 = "1gyh0xckwbzgslbpw9yrpj4gqs9fm1a2qpbzl0sh143fk1kwjlly"; }; + patches = [ + # Allow compilation with GNAT 11, picked from master + (fetchpatch { + name = "fix-gnat-11-compilation.patch"; + url = "https://github.com/ghdl/ghdl/commit/8356ea3bb4e8d0e5ad8638c3d50914b64fc360ec.patch"; + sha256 = "04pzn8g7xha8000wbjjmry6h1grfqyn3bjvj47hi4qwgl21wfjra"; + }) + ]; + LIBRARY_PATH = "${stdenv.cc.libc}/lib"; buildInputs = [ gnat zlib ] ++ lib.optional (backend == "llvm") [ llvm ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 64ad35a31722..1e3e2b65bb0b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11878,8 +11878,7 @@ with pkgs; inherit (gnome2) libart_lgpl; }); - # aarch64-darwin doesn't support earlier gcc - gnat = if (stdenv.isDarwin && stdenv.isAarch64) then gnat11 else gnat9; + gnat = gnat11; gnat6 = wrapCC (gcc6.cc.override { name = "gnat"; From 2458ae6a72d0bcfcc453f680c82d3ce18e646128 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 1 Nov 2021 12:56:30 +0100 Subject: [PATCH 31/38] xmlada: 21.0.0 -> 22.0.0 --- pkgs/development/libraries/ada/xmlada/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ada/xmlada/default.nix b/pkgs/development/libraries/ada/xmlada/default.nix index b855166d5590..cd0aad61d403 100644 --- a/pkgs/development/libraries/ada/xmlada/default.nix +++ b/pkgs/development/libraries/ada/xmlada/default.nix @@ -9,14 +9,14 @@ stdenv.mkDerivation rec { pname = "xmlada"; - version = "21.0.0"; + version = "22.0.0"; src = fetchFromGitHub { name = "xmlada-${version}-src"; owner = "AdaCore"; repo = "xmlada"; rev = "v${version}"; - sha256 = "00vljkvck951nj853v9sda5qbfm1mp8y2k61ja2595rmp8qcrazw"; + sha256 = "1pg6m0sfc1vwvd18r80jv2vwrsb2qgvyl8jmmrmpbdni0npx0kv3"; }; nativeBuildInputs = [ From 7f96c6f0378be9c3c346f6cf3823d54be664dcac Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 1 Nov 2021 12:57:38 +0100 Subject: [PATCH 32/38] gprbuild, gprbuild-boot: 21.0.0 -> 22.0.0 --- pkgs/development/tools/build-managers/gprbuild/boot.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/build-managers/gprbuild/boot.nix b/pkgs/development/tools/build-managers/gprbuild/boot.nix index 352cd0b137be..8291b4066ad1 100644 --- a/pkgs/development/tools/build-managers/gprbuild/boot.nix +++ b/pkgs/development/tools/build-managers/gprbuild/boot.nix @@ -7,13 +7,13 @@ }: let - version = "21.0.0"; + version = "22.0.0"; gprConfigKbSrc = fetchFromGitHub { name = "gprconfig-kb-${version}-src"; owner = "AdaCore"; repo = "gprconfig_kb"; - rev = "v${version}"; + rev = "v21.0.0"; # TODO(@sternenseemann): no 22.0.0 yet sha256 = "11qmzfdd0ipmhxl4k2hjidqc9i40bywrfkbiivd3lhscxca5pxpg"; }; in @@ -27,7 +27,7 @@ stdenv.mkDerivation { owner = "AdaCore"; repo = "gprbuild"; rev = "v${version}"; - sha256 = "1knpwasbrz6sxh3dhkc4izchcz4km04j77r4vxxhi23fbd8v1ynj"; + sha256 = "0rv0ha0kxzab5hhv0jzkjkmchhlvlx8fci8xalnngrgb9nd4r3v8"; }; nativeBuildInputs = [ From bde7dc1f81fe41752af488838fd98845f8be3201 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 1 Nov 2021 12:58:23 +0100 Subject: [PATCH 33/38] gnatcoll-*: 21.0.0 -> 22.0.0 --- pkgs/development/libraries/ada/gnatcoll/bindings.nix | 6 +++--- pkgs/development/libraries/ada/gnatcoll/core.nix | 4 ++-- pkgs/development/libraries/ada/gnatcoll/db.nix | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/ada/gnatcoll/bindings.nix b/pkgs/development/libraries/ada/gnatcoll/bindings.nix index 666989af0acc..1937231d3a02 100644 --- a/pkgs/development/libraries/ada/gnatcoll/bindings.nix +++ b/pkgs/development/libraries/ada/gnatcoll/bindings.nix @@ -33,13 +33,13 @@ in stdenv.mkDerivation rec { pname = "gnatcoll-${component}"; - version = "21.0.0"; + version = "22.0.0"; src = fetchFromGitHub { owner = "AdaCore"; repo = "gnatcoll-bindings"; rev = "v${version}"; - sha256 = "1214hf0m8iz289rjpxdiddnixj65l2xjwbcr7mq5ysbddmig5992"; + sha256 = "0wbwnd6jccwfd4jdxbnzhc0jhm8ad4phz6y9b1gk8adykkk6jcz4"; }; patches = [ @@ -68,7 +68,7 @@ stdenv.mkDerivation rec { buildPhase = '' runHook preBuild - python3 ${component}/setup.py build $buildFlags + python3 ${component}/setup.py build --prefix $out $buildFlags runHook postBuild ''; diff --git a/pkgs/development/libraries/ada/gnatcoll/core.nix b/pkgs/development/libraries/ada/gnatcoll/core.nix index f5f84342137e..690361bb1119 100644 --- a/pkgs/development/libraries/ada/gnatcoll/core.nix +++ b/pkgs/development/libraries/ada/gnatcoll/core.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation rec { pname = "gnatcoll-core"; - version = "21.0.0"; + version = "22.0.0"; src = fetchFromGitHub { owner = "AdaCore"; repo = "gnatcoll-core"; rev = "v${version}"; - sha256 = "0jgs2299zfbr6jg5bxlhqizi60si2m8vw7zq6ns4yhr38qqdskqg"; + sha256 = "0fn28dp6bgpp1sshr09m1x85g2gx11xqkiy410hiicfyg5hamh1l"; }; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/ada/gnatcoll/db.nix b/pkgs/development/libraries/ada/gnatcoll/db.nix index d0512507db24..0c597f199c34 100644 --- a/pkgs/development/libraries/ada/gnatcoll/db.nix +++ b/pkgs/development/libraries/ada/gnatcoll/db.nix @@ -51,13 +51,13 @@ in stdenv.mkDerivation rec { pname = "gnatcoll-${component}"; - version = "21.0.0"; + version = "22.0.0"; src = fetchFromGitHub { owner = "AdaCore"; repo = "gnatcoll-db"; rev = "v${version}"; - sha256 = "0fdfng3yfy645nlw8l3c2za0zkn6pdhkvyrw20wnjx4k26glgb6r"; + sha256 = "1c39yg13faadg5mzpq3s83rn24npmpc4yjj0cvj7kqwpqxci4m55"; }; patches = lib.optionals (component == "sqlite") [ From 68ba489d8e9be9587148126cb8843f840376fc09 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 1 Nov 2021 16:12:57 +0100 Subject: [PATCH 34/38] gnatcoll-*: get python binary name from derivation --- pkgs/development/libraries/ada/gnatcoll/bindings.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ada/gnatcoll/bindings.nix b/pkgs/development/libraries/ada/gnatcoll/bindings.nix index 1937231d3a02..fb2a744be7fb 100644 --- a/pkgs/development/libraries/ada/gnatcoll/bindings.nix +++ b/pkgs/development/libraries/ada/gnatcoll/bindings.nix @@ -68,13 +68,13 @@ stdenv.mkDerivation rec { buildPhase = '' runHook preBuild - python3 ${component}/setup.py build --prefix $out $buildFlags + ${python3.interpreter} ${component}/setup.py build --prefix $out $buildFlags runHook postBuild ''; installPhase = '' runHook preInstall - python3 ${component}/setup.py install --prefix $out + ${python3.interpreter} ${component}/setup.py install --prefix $out runHook postInstall ''; From b011b33e427cfedcd68d673549fb8e9f9850faf2 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 8 Nov 2021 18:07:11 +0100 Subject: [PATCH 35/38] emacs.pkgs.ada-mode: use latest wisi By upgrading the AdaCore libraries to their 22.*.* versions and GNAT to version 11 we can finally upgrade wisi beyond 3.1.5 and probably (hopefully) stay on latest for some time. --- .../editors/emacs/elisp-packages/elpa-packages.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix index b7f861a4cd7a..60fac91839a1 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix @@ -36,14 +36,16 @@ self: let inherit (self) emacs; }; + # Use custom elpa url fetcher with fallback/uncompress + fetchurl = buildPackages.callPackage ./fetchelpa.nix { }; + generateElpa = lib.makeOverridable ({ generated ? ./elpa-generated.nix }: let imported = import generated { callPackage = pkgs: args: self.callPackage pkgs (args // { - # Use custom elpa url fetcher with fallback/uncompress - fetchurl = buildPackages.callPackage ./fetchelpa.nix { }; + inherit fetchurl; }); }; @@ -69,12 +71,7 @@ self: let dontUnpack = false; srcs = [ super.ada-mode.src - # ada-mode needs a specific version of wisi, check NEWS or ada-mode's - # package-requires to find the version to use. - (pkgs.fetchurl { - url = "https://elpa.gnu.org/packages/wisi-3.1.3.tar.lz"; - sha256 = "18dwcc0crds7aw466vslqicidlzamf8avn59gqi2g7y2x9k5q0as"; - }) + self.wisi.src ]; sourceRoot = "ada-mode-${self.ada-mode.version}"; From edfba44b90f62252b3086adda60d697595d7b5b8 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 15 Nov 2021 23:15:01 +0100 Subject: [PATCH 36/38] gprbuild, gprbuild-boot: bump gprconfig_kb to 22.0.0 gprconfig_kb finally also saw a new release, so it matches the gprbuild version again. --- pkgs/development/tools/build-managers/gprbuild/boot.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/build-managers/gprbuild/boot.nix b/pkgs/development/tools/build-managers/gprbuild/boot.nix index 8291b4066ad1..060a74314bd4 100644 --- a/pkgs/development/tools/build-managers/gprbuild/boot.nix +++ b/pkgs/development/tools/build-managers/gprbuild/boot.nix @@ -13,8 +13,8 @@ let name = "gprconfig-kb-${version}-src"; owner = "AdaCore"; repo = "gprconfig_kb"; - rev = "v21.0.0"; # TODO(@sternenseemann): no 22.0.0 yet - sha256 = "11qmzfdd0ipmhxl4k2hjidqc9i40bywrfkbiivd3lhscxca5pxpg"; + rev = "v${version}"; + sha256 = "0zvd0v5cz0zd1hfnhdd91c6sr3bbv1w715j2gvzx3vxlpx1c2q4n"; }; in From badb5a1af29cfcf0b22064c4610c7aecd69cc637 Mon Sep 17 00:00:00 2001 From: libjared Date: Wed, 27 Oct 2021 11:55:29 -0500 Subject: [PATCH 37/38] fhs-userenv-bubblewrap: add ca-certificates to fhs In Arch Linux, many of the certs in /etc/ssl/certs/ are symlinks to /etc/ca-certificates/extracted/. These symlinks are broken in the FHS env. This commit adds ca-certificates to the list of bind mounts, which fixes connection issues with Steam, wget, etc on Arch Linux hosts. --- pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix index 23718bf636c6..4773a1e2cf6e 100644 --- a/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix +++ b/pkgs/build-support/build-fhs-userenv-bubblewrap/default.nix @@ -66,6 +66,7 @@ let "asound.conf" # SSL "ssl/certs" + "ca-certificates" "pki" ]; in concatStringsSep "\n " From e31f392946cfce8a6ded8716f438bf670b0ce0da Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Tue, 9 Nov 2021 21:42:38 +0100 Subject: [PATCH 38/38] llvm_13: fix cross-compilation apply the same fix as used in 517d2b963f35abbca8ccc364141bc5f2b4e92974 --- pkgs/development/compilers/llvm/13/llvm/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/13/llvm/default.nix b/pkgs/development/compilers/llvm/13/llvm/default.nix index a15bcc872a6d..957f29e44994 100644 --- a/pkgs/development/compilers/llvm/13/llvm/default.nix +++ b/pkgs/development/compilers/llvm/13/llvm/default.nix @@ -46,7 +46,8 @@ in stdenv.mkDerivation (rec { buildInputs = [ libxml2 libffi ] ++ optional enablePFM libpfm; # exegesis - propagatedBuildInputs = [ ncurses zlib ]; + propagatedBuildInputs = optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ ncurses ] + ++ [ zlib ]; checkInputs = [ which ];