From 84cd89f0d794fd0b7f4397bab74c1382899191ab Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 7 Feb 2025 21:16:58 +0000 Subject: [PATCH 01/33] amdvlk: 2024.Q4.3 -> 2025.Q1.1 --- pkgs/by-name/am/amdvlk/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/am/amdvlk/package.nix b/pkgs/by-name/am/amdvlk/package.nix index bf09dcaf4b5c..0e11b46783b2 100644 --- a/pkgs/by-name/am/amdvlk/package.nix +++ b/pkgs/by-name/am/amdvlk/package.nix @@ -27,13 +27,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "amdvlk"; - version = "2024.Q4.3"; + version = "2025.Q1.1"; src = fetchRepoProject { name = "amdvlk-src"; manifest = "https://github.com/GPUOpen-Drivers/AMDVLK.git"; rev = "refs/tags/v-${finalAttrs.version}"; - hash = "sha256-PQxTRCSOk8E6y7pXyqxt1QKtRsqnrj/9dQZ8NjnUbhA="; + hash = "sha256-snwNyi/8voptLhZkXLK0QNh7pKo4SFx1iQojNzVr1Ms="; }; buildInputs = From 457c422df0ecf66a2d269d21a4169aded6000584 Mon Sep 17 00:00:00 2001 From: Moritz Hedtke Date: Sun, 9 Feb 2025 13:56:06 +0100 Subject: [PATCH 02/33] trunk: 0.21.5 -> 0.21.7 --- pkgs/by-name/tr/trunk/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/tr/trunk/package.nix b/pkgs/by-name/tr/trunk/package.nix index e54d09b650d5..01470897bbd7 100644 --- a/pkgs/by-name/tr/trunk/package.nix +++ b/pkgs/by-name/tr/trunk/package.nix @@ -8,13 +8,13 @@ rustPlatform.buildRustPackage rec { pname = "trunk"; - version = "0.21.5"; + version = "0.21.7"; src = fetchFromGitHub { owner = "trunk-rs"; repo = "trunk"; rev = "v${version}"; - hash = "sha256-AHW686xPGCMLISrOLLfDR5g+2XpMJ+zfmWGn3fMfKbA="; + hash = "sha256-VAAGHM2GDrvZvOTRPkxSFs6pzDQGhi6vPpprKJSZKUw="; }; nativeBuildInputs = [ pkg-config ]; @@ -23,7 +23,7 @@ rustPlatform.buildRustPackage rec { checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ]; useFetchCargoVendor = true; - cargoHash = "sha256-MkH0khm4b/xumrzwBfwq4CbBgqeL71iag9WTOoi/IOw="; + cargoHash = "sha256-IiKb8MD5QdGMkdX2dbcPkW1cUJq82+uDK1Ru+/otErc="; meta = with lib; { homepage = "https://github.com/trunk-rs/trunk"; From a6621bdf837f68f9d2b5c9f24d0e98fdb461ab77 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Sun, 9 Feb 2025 06:01:06 -0800 Subject: [PATCH 03/33] tailwindcss: use finalAttrs, run install hooks This allows for overriding this derivation with `postInstall` and better supports other sorts of overriding because of referencing `finalAttrs` instead of hard-coding the values from the initial derivation. --- pkgs/development/tools/tailwindcss/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/tailwindcss/default.nix b/pkgs/development/tools/tailwindcss/default.nix index 51e52e1a49b4..f562cabd500f 100644 --- a/pkgs/development/tools/tailwindcss/default.nix +++ b/pkgs/development/tools/tailwindcss/default.nix @@ -29,12 +29,12 @@ let } .${system} or throwSystem; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "tailwindcss"; version = "3.4.17"; src = fetchurl { - url = "https://github.com/tailwindlabs/tailwindcss/releases/download/v${version}/tailwindcss-${plat}"; + url = "https://github.com/tailwindlabs/tailwindcss/releases/download/v${finalAttrs.version}/tailwindcss-${plat}"; inherit hash; }; @@ -44,13 +44,15 @@ stdenv.mkDerivation rec { dontFixup = true; installPhase = '' + runHook preInstall mkdir -p $out/bin - cp ${src} $out/bin/tailwindcss + cp ${finalAttrs.src} $out/bin/tailwindcss chmod 755 $out/bin/tailwindcss + runHook postInstall ''; passthru.tests.helptext = runCommand "tailwindcss-test-helptext" { } '' - ${tailwindcss}/bin/tailwindcss --help > $out + ${lib.getExe finalAttrs.finalPackage} --help > $out ''; passthru.updateScript = ./update.sh; @@ -63,4 +65,4 @@ stdenv.mkDerivation rec { mainProgram = "tailwindcss"; platforms = platforms.darwin ++ platforms.linux; }; -} +}) From ec820a8d452a8b8e0e52a998cf4fbfbfb611e998 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Sun, 9 Feb 2025 05:42:36 -0800 Subject: [PATCH 04/33] haskellPackages.tailwind: enhance override to provide `tailwind` binary This reverts to previous use of `tailwind` wrapper before 50f5683d8c8534c2f125f76b5ba6d4fa22ad4fc6 removed it. Since we already had an override, this makes it a little chunkier to maintain compatibility. --- pkgs/development/haskell-modules/configuration-nix.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index f2415d204dbe..c0ff75b80800 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1426,6 +1426,16 @@ self: super: builtins.intersectAttrs super { pkgs.nodePackages."@tailwindcss/line-clamp" pkgs.nodePackages."@tailwindcss/typography" ]; + # Added a shim for the `tailwindcss` CLI entry point + nativeBuildInputs = (oa.nativeBuildInputs or []) ++ [ pkgs.buildPackages.makeBinaryWrapper ]; + postInstall = (oa.postInstall or "") + '' + nodePath="" + for p in "$out" "${pkgs.nodePackages.postcss}" $plugins; do + nodePath="$nodePath''${nodePath:+:}$p/lib/node_modules" + done + makeWrapper "$out/bin/tailwindcss" "$out/bin/tailwind" --prefix NODE_PATH : "$nodePath" + unset nodePath + ''; })) super.tailwind; emanote = addBuildDepend pkgs.stork super.emanote; From e905ca924547f8c9f664da5a0b0f0b92b982fc71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 9 Feb 2025 17:39:30 +0100 Subject: [PATCH 05/33] mitmproxy: relax some dependencies to fix build --- pkgs/development/python-modules/mitmproxy/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/mitmproxy/default.nix b/pkgs/development/python-modules/mitmproxy/default.nix index 6248d2e0d47e..2e7c2bf7848b 100644 --- a/pkgs/development/python-modules/mitmproxy/default.nix +++ b/pkgs/development/python-modules/mitmproxy/default.nix @@ -60,6 +60,8 @@ buildPythonPackage rec { pythonRelaxDeps = [ "passlib" "protobuf" + "pyparsing" + "ruamel.yaml" "urwid" ]; From 2ef08ebfecdd97a46401cd29959fc1c6fd7dc6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 9 Feb 2025 11:16:46 -0800 Subject: [PATCH 06/33] vaultwarden: 1.33.1 -> 1.33.2 Diff: https://github.com/dani-garcia/vaultwarden/compare/1.33.1...1.33.2 Changelog: https://github.com/dani-garcia/vaultwarden/releases/tag/1.33.2 --- pkgs/tools/security/vaultwarden/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/vaultwarden/default.nix b/pkgs/tools/security/vaultwarden/default.nix index 65604d531349..de0793a6a89c 100644 --- a/pkgs/tools/security/vaultwarden/default.nix +++ b/pkgs/tools/security/vaultwarden/default.nix @@ -22,17 +22,17 @@ in rustPlatform.buildRustPackage rec { pname = "vaultwarden"; - version = "1.33.1"; + version = "1.33.2"; src = fetchFromGitHub { owner = "dani-garcia"; repo = "vaultwarden"; rev = version; - hash = "sha256-p5SgXqeafEqPQmSKEtcPCHvxODxrEX4gNmpb2ybmpO4="; + hash = "sha256-Lu3/qVTi5Eedcm+3XlHAAJ1nPHm9hW4HZncQKmzDdoo="; }; useFetchCargoVendor = true; - cargoHash = "sha256-B9RztnkIbYVWdx85p1WEskwTdFrUruD0UJ7qFIg8vy8="; + cargoHash = "sha256-T/ehLSPJmEuQYhotK12iqXQSe5Ke8+dkr9PVDe4Kmis="; # used for "Server Installed" version in admin panel env.VW_VERSION = version; From fcb71bf658d15153b3aff455bae568e0407465ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 9 Feb 2025 12:50:20 -0800 Subject: [PATCH 07/33] nixos/tests/vaultwarden: adapt to new webvault --- nixos/tests/vaultwarden.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nixos/tests/vaultwarden.nix b/nixos/tests/vaultwarden.nix index 6ddb6161f15c..c656e9ef1a06 100644 --- a/nixos/tests/vaultwarden.nix +++ b/nixos/tests/vaultwarden.nix @@ -69,14 +69,13 @@ let driver.find_element(By.XPATH, "//button[contains(., 'Continue')]").click() - driver.find_element(By.CSS_SELECTOR, 'input#login_input_master-password').send_keys( + driver.find_element(By.XPATH, '//input[@type="password"]').send_keys( '${userPassword}' ) - driver.find_element(By.XPATH, "//button[contains(., 'Log in')]").click() + driver.find_element(By.XPATH, "//button[contains(., 'Log in with master password')]").click() - wait.until(EC.title_contains("Vaults")) - - driver.find_element(By.XPATH, "//button[contains(., 'New item')]").click() + wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, 'button#newItemDropdown'))).click() + driver.find_element(By.XPATH, "//button[contains(., 'Item')]").click() driver.find_element(By.CSS_SELECTOR, 'input#name').send_keys( 'secrets' From 6ca1674e4c5424a9738dbd40272646cdb8f64b9b Mon Sep 17 00:00:00 2001 From: Nico Felbinger Date: Sun, 9 Feb 2025 22:50:11 +0100 Subject: [PATCH 08/33] jefferson: relax cstruct dependency --- pkgs/by-name/je/jefferson/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/je/jefferson/package.nix b/pkgs/by-name/je/jefferson/package.nix index 62e57693c532..81b27588147f 100644 --- a/pkgs/by-name/je/jefferson/package.nix +++ b/pkgs/by-name/je/jefferson/package.nix @@ -26,6 +26,8 @@ python3.pkgs.buildPythonApplication rec { lzallright ]; + pythonRelaxDeps = [ "cstruct" ]; + pythonImportsCheck = [ "jefferson" ]; From 6a68f2f732a0fa76dd7f086bf3c9853dbf4542d4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 10 Feb 2025 00:25:12 +0000 Subject: [PATCH 09/33] immich-public-proxy: 1.6.3 -> 1.7.2 --- pkgs/by-name/im/immich-public-proxy/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/im/immich-public-proxy/package.nix b/pkgs/by-name/im/immich-public-proxy/package.nix index 63157a6af6c5..ff2255d7adc4 100644 --- a/pkgs/by-name/im/immich-public-proxy/package.nix +++ b/pkgs/by-name/im/immich-public-proxy/package.nix @@ -8,17 +8,17 @@ }: buildNpmPackage rec { pname = "immich-public-proxy"; - version = "1.6.3"; + version = "1.7.2"; src = fetchFromGitHub { owner = "alangrainger"; repo = "immich-public-proxy"; tag = "v${version}"; - hash = "sha256-nhVU3CVexXV+WCUP8E1tGvwwjy+PCTL9v3/3KI1tDus="; + hash = "sha256-G08xucggEdO+iwW7m1D53nr4Rah9D/qD4xlyLwWwBq0="; }; sourceRoot = "${src.name}/app"; - npmDepsHash = "sha256-NQgxAHNMPp2eDoiMqjqBOZ3364XjW3WtvrK/ciqg1DI="; + npmDepsHash = "sha256-aXTdKGlF2mK8I+vQMd+V6JNTG49S4jJd1kTNBai6sZE="; # patch in absolute nix store paths so the process doesn't need to cwd in $out postPatch = '' From 10ac6580d0b9786dba029e0fde8452fdf849c668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=BA=E0=B8=95=E0=B8=B1?= =?UTF-8?q?=E0=B8=A5?= Date: Mon, 10 Feb 2025 15:14:46 +0700 Subject: [PATCH 10/33] h2o: add mainProgram --- pkgs/by-name/h2/h2o/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/h2/h2o/package.nix b/pkgs/by-name/h2/h2o/package.nix index b5b838945881..c1f29fc62e27 100644 --- a/pkgs/by-name/h2/h2o/package.nix +++ b/pkgs/by-name/h2/h2o/package.nix @@ -55,6 +55,7 @@ stdenv.mkDerivation (finalAttrs: { toastal thoughtpolice ]; + mainProgram = "h2o"; platforms = platforms.linux; }; }) From f09a72a89131e63d793a8e8c856ab60cb784e1f1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 10 Feb 2025 10:04:15 +0000 Subject: [PATCH 11/33] python312Packages.amaranth-boards: 0-unstable-2024-12-21 -> 0-unstable-2025-02-07 --- pkgs/development/python-modules/amaranth-boards/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/amaranth-boards/default.nix b/pkgs/development/python-modules/amaranth-boards/default.nix index 8406ef39103e..82c530f3cd73 100644 --- a/pkgs/development/python-modules/amaranth-boards/default.nix +++ b/pkgs/development/python-modules/amaranth-boards/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "amaranth-boards"; - version = "0-unstable-2024-12-21"; + version = "0-unstable-2025-02-07"; pyproject = true; # from `pdm show` realVersion = @@ -22,10 +22,10 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "amaranth-lang"; repo = "amaranth-boards"; - rev = "9d97c4816288c9c2cc304d9280c2c63178d50d2f"; + rev = "6e01882eefd62cf19f5740406144632fe2d21947"; # these files change depending on git branch status postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes"; - hash = "sha256-c+LUWNik95PO5oPM/Bjdxu8j9TD2Q8YSGtdNq1E+i4o="; + hash = "sha256-U/+5v4wN+HfpWHnT9E9hf4XYpzqQQ7Tgq6Z09nEIBeE="; }; build-system = [ pdm-backend ]; From ac1ae5809bcaf713171de2c40afd75b8af0ec630 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 10 Feb 2025 12:43:16 +0000 Subject: [PATCH 12/33] erofs-utils: 1.8.4 -> 1.8.5 --- pkgs/by-name/er/erofs-utils/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/er/erofs-utils/package.nix b/pkgs/by-name/er/erofs-utils/package.nix index 05968132a811..a544e91ec41b 100644 --- a/pkgs/by-name/er/erofs-utils/package.nix +++ b/pkgs/by-name/er/erofs-utils/package.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "erofs-utils"; - version = "1.8.4"; + version = "1.8.5"; outputs = [ "out" "man" @@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/snapshot/erofs-utils-${finalAttrs.version}.tar.gz"; - hash = "sha256-eRWHqgdLufn6IYx2LMH2CwFeL1G8ss6R9oLwQ4VqtJQ="; + hash = "sha256-zYYRJw6chv4GL2RxA8pq2p7XEORDD91ZYNUUd3kZIA0="; }; nativeBuildInputs = [ From 8e260adb6d42ff196366652e2bba994d53c9e9d3 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 10 Feb 2025 07:15:41 +0100 Subject: [PATCH 13/33] ocamlPackages.shell: disable tests of version 0.15 --- pkgs/development/ocaml-modules/janestreet/0.15.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/ocaml-modules/janestreet/0.15.nix b/pkgs/development/ocaml-modules/janestreet/0.15.nix index ddb4c3a1f8dc..49c28ae5381b 100644 --- a/pkgs/development/ocaml-modules/janestreet/0.15.nix +++ b/pkgs/development/ocaml-modules/janestreet/0.15.nix @@ -1276,6 +1276,7 @@ with self; buildInputs = [ jst-config ]; propagatedBuildInputs = [ textutils ]; checkInputs = [ ounit ]; + doCheck = false; # Does not build with GCC 14 }; shexp = janePackage { From 76320c89a8dca7477bd8e0ff9d4eae4eaf14752c Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 10 Feb 2025 07:15:46 +0100 Subject: [PATCH 14/33] ocamlPackages.async_ssl: fix build of version 0.16.1 --- pkgs/development/ocaml-modules/janestreet/0.16.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/janestreet/0.16.nix b/pkgs/development/ocaml-modules/janestreet/0.16.nix index 30aa920fff24..74e8b2c9a62a 100644 --- a/pkgs/development/ocaml-modules/janestreet/0.16.nix +++ b/pkgs/development/ocaml-modules/janestreet/0.16.nix @@ -191,6 +191,10 @@ with self; version = "0.16.1"; pname = "async_ssl"; hash = "sha256-83YKxvVb/JwBnQG4R/R1Ztik9T/hO4cbiNTfFnErpG4="; + patches = fetchpatch { + url = "https://raw.githubusercontent.com/ocaml/opam-source-archives/d7f046579bfc7cfe77ce12f57fd11c206e7e9f30/patches/async_ssl/no-incompatible-pointer-types-0161.patch"; + hash = "sha256-NcQX9eZ97kaQCOVAuYgR8NlFD3ZrGbT/2QqCjYf9Xnw="; + }; meta.description = "Async wrappers for SSL"; buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ From 49e10c7b806b7fe9bdc8941fa29d2167238a9156 Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Mon, 10 Feb 2025 11:22:26 +0100 Subject: [PATCH 15/33] luaPackages.nvim-dbee: init at 0.1.9-1 --- maintainers/scripts/luarocks-packages.csv | 1 + .../editors/vim/plugins/overrides.nix | 35 +------------------ .../lua-modules/generated-packages.nix | 23 ++++++++++++ 3 files changed, 25 insertions(+), 34 deletions(-) diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index 0ad3a2ee1d4b..8a973374a1a3 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -121,6 +121,7 @@ neotest,,,,,,mrcjkb nlua,,,,,,teto nui.nvim,,,,,,mrcjkb nvim-cmp,https://raw.githubusercontent.com/hrsh7th/nvim-cmp/main/nvim-cmp-scm-1.rockspec,,,,, +nvim-dbee,,,,,,perchun nvim-nio,,,,,,mrcjkb orgmode,,,,,, papis-nvim,,,,,,GaetanLepage diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index b3e19e320ec4..f738ddf52051 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -2396,40 +2396,6 @@ in passthru.python3Dependencies = [ python3.pkgs.mwclient ]; }; - nvim-dbee = super.nvim-dbee.overrideAttrs ( - oa: - let - dbee-go = buildGoModule { - name = "nvim-dbee"; - src = "${oa.src}/dbee"; - vendorHash = "sha256-U/3WZJ/+Bm0ghjeNUILsnlZnjIwk3ySaX3Rd4L9Z62A="; - buildInputs = [ - arrow-cpp - duckdb - ]; - }; - in - { - dependencies = [ self.nui-nvim ]; - - # nvim-dbee looks for the go binary in paths returned bu M.dir() and M.bin() defined in lua/dbee/install/init.lua - postPatch = '' - substituteInPlace lua/dbee/install/init.lua \ - --replace-fail 'return vim.fn.stdpath("data") .. "/dbee/bin"' 'return "${dbee-go}/bin"' - ''; - - preFixup = '' - mkdir $target/bin - ln -s ${dbee-go}/bin/dbee $target/bin/dbee - ''; - - meta.platforms = lib.platforms.linux; - } - ); - - nvim-impairative = super.nvim-impairative.overrideAttrs { - }; - nvim-navic = super.nvim-navic.overrideAttrs { dependencies = [ self.nvim-lspconfig ]; }; @@ -4040,6 +4006,7 @@ in "neotest" "nui-nvim" "nvim-cmp" + "nvim-dbee" "nvim-nio" "orgmode" "papis-nvim" diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index 391fed541767..9c78f7931a36 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -2884,6 +2884,29 @@ buildLuarocksPackage { }; }) {}; +nvim-dbee = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder, nui-nvim }: +buildLuarocksPackage { + pname = "nvim-dbee"; + version = "0.1.9-1"; + knownRockspec = (fetchurl { + url = "mirror://luarocks/nvim-dbee-0.1.9-1.rockspec"; + sha256 = "1lmzy6ivnwvhzclkfbcswj2mznrpc4i8s3ivdrc78rr86i49mvpg"; + }).outPath; + src = fetchzip { + url = "https://github.com/kndndrj/nvim-dbee/archive/v0.1.9.zip"; + sha256 = "10xplksglyd8af8q1cl2lxcpn52b766g87gva9fd3l66idxsds00"; + }; + + disabled = luaOlder "5.1"; + propagatedBuildInputs = [ nui-nvim ]; + + meta = { + homepage = "https://github.com/kndndrj/nvim-dbee"; + description = "Interactive database client for neovim"; + license.fullName = "GPL-3.0"; + }; +}) {}; + nvim-nio = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder }: buildLuarocksPackage { pname = "nvim-nio"; From 7b925c96f925402bdfd529bf70d734c61444ed76 Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Mon, 10 Feb 2025 14:21:27 +0100 Subject: [PATCH 16/33] python3Packages.nixpkgs-updaters-library: 1.0.2 -> 1.1.0 --- .../python-modules/nixpkgs-updaters-library/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nixpkgs-updaters-library/default.nix b/pkgs/development/python-modules/nixpkgs-updaters-library/default.nix index 358c69181139..b4f706a4deae 100644 --- a/pkgs/development/python-modules/nixpkgs-updaters-library/default.nix +++ b/pkgs/development/python-modules/nixpkgs-updaters-library/default.nix @@ -29,7 +29,7 @@ }: buildPythonPackage rec { pname = "nixpkgs-updaters-library"; - version = "1.0.2"; + version = "1.1.0"; pyproject = true; disabled = pythonOlder "3.12"; @@ -38,7 +38,7 @@ buildPythonPackage rec { owner = "PerchunPak"; repo = "nixpkgs-updaters-library"; tag = "v${version}"; - hash = "sha256-SzGbsHy3Pwpr92512y/R3JLtC01jAveFavRGOYyr81U="; + hash = "sha256-gg+y3w0d2GKJ56XZ4Xw9OYTJ5GwqGkTZ/fRXwDhTEDE="; }; postPatch = '' From da86067e1ffffa345d9fc4e3df8a704545a7aa59 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 10 Feb 2025 13:29:37 +0000 Subject: [PATCH 17/33] lprobe: 0.1.4 -> 0.1.5 --- pkgs/by-name/lp/lprobe/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/lp/lprobe/package.nix b/pkgs/by-name/lp/lprobe/package.nix index e7ecb2869ed0..0e5ba650733d 100644 --- a/pkgs/by-name/lp/lprobe/package.nix +++ b/pkgs/by-name/lp/lprobe/package.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "lprobe"; - version = "0.1.4"; + version = "0.1.5"; src = fetchFromGitHub { owner = "fivexl"; repo = "lprobe"; tag = "v${version}"; - hash = "sha256-WC0MDTyd5tRtSQ1LQsYJgV9CwJwtvnIO6tQnPrjpfcY="; + hash = "sha256-1VoZIZQDEYVQg8cMacpHPRUffu+1+bAt7O3MZSi6+2A="; }; - vendorHash = "sha256-Ot9eePv/bjOZJfOjTCOJGXCaM8hoO4ZUPrpec8lT/JY="; + vendorHash = "sha256-wrxIHb296YOszgK9GnCTpSHz2kSd89zT/90/CrPely8="; buildInputs = [ libpcap From 3c911b2aca0599b15b9d58f7339d73666ffb394a Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 12 Dec 2024 16:17:19 +0100 Subject: [PATCH 18/33] lib.types: init mergeTypes --- lib/tests/misc.nix | 41 ++++++++++++++++++++++++++++++++++++++++ lib/types.nix | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix index 62f231cc51fd..add76539ea31 100644 --- a/lib/tests/misc.nix +++ b/lib/tests/misc.nix @@ -2564,4 +2564,45 @@ runTests { }; expected = "c"; }; + + testMergeTypesSimple = + let + mergedType = types.mergeTypes types.str types.str; + in + { + expr = mergedType.name; + expected = "str"; + }; + + testMergeTypesFail = + let + mergedType = types.mergeTypes types.str types.int; + in + { + expr = types.isType "merge-error" mergedType; + expected = true; + }; + + testMergeTypesEnum = + let + enumAB = lib.types.enum ["A" "B"]; + enumXY = lib.types.enum ["X" "Y"]; + merged = lib.types.mergeTypes enumAB enumXY; # -> enum [ "A" "B" "X" "Y" ] + in + { + expr = { + checkA = merged.check "A"; + checkB = merged.check "B"; + checkX = merged.check "X"; + checkY = merged.check "Y"; + checkC = merged.check "C"; + }; + expected = { + checkA = true; + checkB = true; + checkX = true; + checkY = true; + checkC = false; + }; + }; } diff --git a/lib/types.nix b/lib/types.nix index 43ace4a3f6a5..35335bb81aad 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -1107,6 +1107,53 @@ rec { addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; }; }; + + /** + Merges two option types together. + + :::{.note} + Uses the type merge function of the first type, to merge it with the second type. + + Usually types can only be merged if they are of the same type + ::: + + # Inputs + + : `a` (option type): The first option type. + : `b` (option type): The second option type. + + # Returns + + - The merged option type. + - `{ _type = "merge-error"; error = "Cannot merge types"; }` if the types can't be merged. + + # Examples + :::{.example} + ## `lib.types.mergeTypes` usage example + ```nix + let + enumAB = lib.types.enum ["A" "B"]; + enumXY = lib.types.enum ["X" "Y"]; + # This operation could be notated as: [ A ] | [ B ] -> [ A B ] + merged = lib.types.mergeTypes enumAB enumXY; # -> enum [ "A" "B" "X" "Y" ] + in + assert merged.check "A"; # true + assert merged.check "B"; # true + assert merged.check "X"; # true + assert merged.check "Y"; # true + merged.check "C" # false + ``` + ::: + */ + mergeTypes = a: b: + assert isOptionType a && isOptionType b; + let + merged = a.typeMerge b.functor; + in + if merged == null then + setType "merge-error" { error = "Cannot merge types"; } + else + merged; }; in outer_types // outer_types.types From a02b183b85d7147a03361226ffe984d43dba0544 Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Fri, 5 Jul 2024 02:46:13 +0200 Subject: [PATCH 19/33] linuxPackages.nxp-pn5xx: init at 0.4-unstable --- pkgs/os-specific/linux/nxp-pn5xx/default.nix | 40 ++++++++++++++++++++ pkgs/top-level/linux-kernels.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/os-specific/linux/nxp-pn5xx/default.nix diff --git a/pkgs/os-specific/linux/nxp-pn5xx/default.nix b/pkgs/os-specific/linux/nxp-pn5xx/default.nix new file mode 100644 index 000000000000..4ca9db16e847 --- /dev/null +++ b/pkgs/os-specific/linux/nxp-pn5xx/default.nix @@ -0,0 +1,40 @@ +{ + lib, + stdenv, + fetchFromGitHub, + kernel, + kernelModuleMakeFlags, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "nxp-pn5xx"; + version = "0.4-unstable-2025-02-08-${kernel.version}"; + + src = fetchFromGitHub { + owner = "jr64"; + repo = "nxp-pn5xx"; + rev = "07411e0ce3445e7dcb970df1837f0ad74b7b0a7a"; + hash = "sha256-jVkcvURFlihKW2vFvAaqzKdtexPXywRa2LkPkIhmdeU="; + }; + + nativeBuildInputs = kernel.moduleBuildDependencies; + + makeFlags = kernelModuleMakeFlags ++ [ + "KERNELRELEASE=${kernel.modDirVersion}" + "BUILD_KERNEL_PATH=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" + "INSTALL_MOD_PATH=$(out)/lib/modules/${kernel.modDirVersion}" + ]; + + postInstall = '' + mkdir -p $out/etc/udev/rules.d + echo 'SUBSYSTEM=="misc", KERNEL=="pn544", MODE="0666", GROUP="dialout"' > $out/etc/udev/rules.d/99-nxp-pn5xx.rules + ''; + + meta = { + description = "NXP's NFC Open Source Kernel mode driver with ACPI configuration support"; + homepage = "https://github.com/jr64/nxp-pn5xx"; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ stargate01 ]; + platforms = lib.platforms.linux; + }; +}) diff --git a/pkgs/top-level/linux-kernels.nix b/pkgs/top-level/linux-kernels.nix index 3cabaec2c7b1..1f6dfd4f56d8 100644 --- a/pkgs/top-level/linux-kernels.nix +++ b/pkgs/top-level/linux-kernels.nix @@ -457,6 +457,8 @@ in { nvidia_x11_stable_open = nvidiaPackages.stable.open; nvidia_x11_vulkan_beta_open = nvidiaPackages.vulkan_beta.open; + nxp-pn5xx = callPackage ../os-specific/linux/nxp-pn5xx { }; + openrazer = callPackage ../os-specific/linux/openrazer/driver.nix { }; ply = callPackage ../os-specific/linux/ply { }; From 0d67f93d7ea0b459a6259555a0ab71a70c94ac0b Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Mon, 27 Jun 2022 06:49:15 +0200 Subject: [PATCH 20/33] libnfc-nci: init at 2.4.1-unstable --- pkgs/by-name/li/libnfc-nci/package.nix | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/li/libnfc-nci/package.nix diff --git a/pkgs/by-name/li/libnfc-nci/package.nix b/pkgs/by-name/li/libnfc-nci/package.nix new file mode 100644 index 000000000000..55e98b1f9be9 --- /dev/null +++ b/pkgs/by-name/li/libnfc-nci/package.nix @@ -0,0 +1,47 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + config, + debug ? config.libnfc-nci.debug or false, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libnfc-nci"; + version = "2.4.1-unstable-2024-08-05"; + + src = fetchFromGitHub { + owner = "StarGate01"; + repo = "linux_libnfc-nci"; + rev = "7ce9c8aad0e37850a49b6d8dcc22ae5c783268e7"; + sha256 = "sha256-iSvDiae+A2hUok426Lj5TMn3Q9G+vH1G0jajP48PehQ="; + }; + + buildInputs = [ + pkg-config + autoreconfHook + ]; + + configureFlags = + [ + "--enable-i2c" + ] + ++ lib.optionals debug [ + "--enable-debug" + ]; + dontStrip = debug; + + postInstall = '' + rm -rf $out/etc + ''; + + meta = { + description = "Linux NFC stack for NCI based NXP NFC Controllers"; + homepage = "https://github.com/NXPNFCLinux/linux_libnfc-nci"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ stargate01 ]; + platforms = lib.platforms.linux; + }; +}) From f6e9c847439a95d916abc4eb5f83df7cefa166e9 Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Tue, 16 Jul 2024 01:00:55 +0200 Subject: [PATCH 21/33] ifdnfc-nci: init at 0.2.1 --- pkgs/by-name/if/ifdnfc-nci/package.nix | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/if/ifdnfc-nci/package.nix diff --git a/pkgs/by-name/if/ifdnfc-nci/package.nix b/pkgs/by-name/if/ifdnfc-nci/package.nix new file mode 100644 index 000000000000..e619b6514c02 --- /dev/null +++ b/pkgs/by-name/if/ifdnfc-nci/package.nix @@ -0,0 +1,39 @@ +{ + lib, + stdenv, + fetchFromGitHub, + pkg-config, + cmake, + pcsclite, + libnfc-nci, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "ifdnfc-nci"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "StarGate01"; + repo = "ifdnfc-nci"; + tag = "v${finalAttrs.version}"; + sha256 = "sha256-I2MNzmaxQUh4bN3Uytf2bQRthByEaFWM7c79CKZJQZA="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + pcsclite + libnfc-nci + ]; + + meta = { + description = "PC/SC IFD Handler based on linux_libnfc-nci"; + homepage = "https://github.com/StarGate01/ifdnfc-nci"; + license = lib.licenses.gpl3Only; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ stargate01 ]; + }; +}) From 735f85e845803b8e6e8915d99e9bead9c18373a9 Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Tue, 9 Jul 2024 09:43:41 +0200 Subject: [PATCH 22/33] pcscd: allow multiple readerConfig entries --- nixos/modules/services/hardware/pcscd.nix | 54 ++++++++++++++++------- 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/nixos/modules/services/hardware/pcscd.nix b/nixos/modules/services/hardware/pcscd.nix index df98c1fd208d..2fdc115a07ed 100644 --- a/nixos/modules/services/hardware/pcscd.nix +++ b/nixos/modules/services/hardware/pcscd.nix @@ -1,11 +1,16 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.services.pcscd; - cfgFile = pkgs.writeText "reader.conf" config.services.pcscd.readerConfig; + cfgFile = pkgs.writeText "reader.conf" ( + builtins.concatStringsSep "\n\n" config.services.pcscd.readerConfigs + ); - package = if config.security.polkit.enable - then pkgs.pcscliteWithPolkit - else pkgs.pcsclite; + package = if config.security.polkit.enable then pkgs.pcscliteWithPolkit else pkgs.pcsclite; pluginEnv = pkgs.buildEnv { name = "pcscd-plugins"; @@ -14,6 +19,20 @@ let in { + imports = [ + (lib.mkChangedOptionModule + [ "services" "pcscd" "readerConfig" ] + [ "services" "pcscd" "readerConfigs" ] + ( + config: + let + readerConfig = lib.getAttrFromPath [ "services" "pcscd" "readerConfig" ] config; + in + [ readerConfig ] + ) + ) + ]; + options.services.pcscd = { enable = lib.mkEnableOption "PCSC-Lite daemon, to access smart cards using SCard API (PC/SC)"; @@ -24,15 +43,17 @@ in description = "Plugin packages to be used for PCSC-Lite."; }; - readerConfig = lib.mkOption { - type = lib.types.lines; - default = ""; - example = '' - FRIENDLYNAME "Some serial reader" - DEVICENAME /dev/ttyS0 - LIBPATH /path/to/serial_reader.so - CHANNELID 1 - ''; + readerConfigs = lib.mkOption { + type = lib.types.listOf lib.types.lines; + default = [ ]; + example = [ + '' + FRIENDLYNAME "Some serial reader" + DEVICENAME /dev/ttyS0 + LIBPATH /path/to/serial_reader.so + CHANNELID 1 + '' + ]; description = '' Configuration for devices that aren't hotpluggable. @@ -68,7 +89,10 @@ in # around it, we force the path to the cfgFile. # # https://github.com/NixOS/nixpkgs/issues/121088 - serviceConfig.ExecStart = [ "" "${lib.getExe package} -f -x -c ${cfgFile} ${lib.escapeShellArgs cfg.extraArgs}" ]; + serviceConfig.ExecStart = [ + "" + "${lib.getExe package} -f -x -c ${cfgFile} ${lib.escapeShellArgs cfg.extraArgs}" + ]; }; }; } From a05198804cdf53c214864a4b7e2eb0db5c25aa5c Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Mon, 8 Jul 2024 23:35:21 +0200 Subject: [PATCH 23/33] nixos/nfc-nci: init --- .../manual/release-notes/rl-2505.section.md | 2 + nixos/modules/hardware/nfc-nci.nix | 205 ++++++++++++++++++ nixos/modules/module-list.nix | 1 + 3 files changed, 208 insertions(+) create mode 100644 nixos/modules/hardware/nfc-nci.nix diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 1ca298c684fd..e9d5715ef689 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -111,6 +111,8 @@ - [waagent](https://github.com/Azure/WALinuxAgent), the Microsoft Azure Linux Agent (waagent) manages Linux provisioning and VM interaction with the Azure Fabric Controller. Available with [services.waagent](options.html#opt-services.waagent.enable). +- [nfc-nci](https://github.com/StarGate01/ifdnfc-nci), an alternative NFC stack and PC/SC driver for the NXP PN54x chipset, commonly found in Lenovo systems as NXP1001 (NPC300). Available as [hardware.nfc-nci](#opt-hardware.nfc-nci.enable). + - [duckdns](https://www.duckdns.org), free dynamic DNS. Available with [services.duckdns](options.html#opt-services.duckdns.enable) - [nostr-rs-relay](https://git.sr.ht/~gheartsfield/nostr-rs-relay/), This is a nostr relay, written in Rust. Available as [services.nostr-rs-relay](options.html#opt-services.nostr-rs-relay.enable). diff --git a/nixos/modules/hardware/nfc-nci.nix b/nixos/modules/hardware/nfc-nci.nix new file mode 100644 index 000000000000..bb2ce3a9dca0 --- /dev/null +++ b/nixos/modules/hardware/nfc-nci.nix @@ -0,0 +1,205 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + cfg = config.hardware.nfc-nci; + + # To understand these settings in more detail, refer to the upstream configuration templates + # available at https://github.com/NXPNFCLinux/linux_libnfc-nci/tree/master/conf . + # Settings in curly braces are NCI commands, the "NFC Controller Interface Specification" + # as well as the "NFC Digital Protocol Technical Specification" can be found online. + # These default settings have been specifically engineered for the Lenovo NXP1001 (NPC300) chipset. + defaultSettings = { + # This block will be emitted into /etc/libnfc-nci.conf + nci = { + # Set up general logging + APPL_TRACE_LEVEL = "0x01"; + PROTOCOL_TRACE_LEVEL = "0x01"; + # Set up which NFC technologies are enabled (due to e.g. local regulation or patent law) + HOST_LISTEN_TECH_MASK = "0x07"; + POLLING_TECH_MASK = "0xEF"; + P2P_LISTEN_TECH_MASK = "0xC5"; + }; + # This block will be emitted into /etc/libnfc-nxp-init.conf + init = { + # Setup logging of the individual userland library components + NXPLOG_GLOBAL_LOGLEVEL = "0x01"; + NXPLOG_EXTNS_LOGLEVEL = "0x01"; + NXPLOG_NCIHAL_LOGLEVEL = "0x01"; + NXPLOG_NCIX_LOGLEVEL = "0x01"; + NXPLOG_NCIR_LOGLEVEL = "0x01"; + NXPLOG_FWDNLD_LOGLEVEL = "0x00"; + NXPLOG_TML_LOGLEVEL = "0x01"; + # Where to find the kernel device node + NXP_NFC_DEV_NODE = ''"/dev/pn544"''; + # Enable the NXP proprietary features of the chip + NXP_ACT_PROP_EXTN = "{2F, 02, 00}"; + # Configure the NFC Forum profile: + # 0xA0 0x44: POLL_PROFILE_SEL_CFG = 0x00 (Use NFC Forum profile default configuration values. Specifically, not EMVCo.) + NXP_NFC_PROFILE_EXTN = '' + {20, 02, 05, 01, + A0, 44, 01, 00 + } + ''; + # Enable chip standby mode + NXP_CORE_STANDBY = "{2F, 00, 01, 01}"; + # Enable NCI packet fragmentation on the I2C bus + NXP_I2C_FRAGMENTATION_ENABLED = "0x01"; + }; + # This block will be emitted into /etc/libnfc-nxp-pn547.conf as well as /etc/libnfc-nxp-pn548.conf + # Which file is actually used is decided by the library at runtime depending on chip variant, both files are required. + pn54x = { + # Enable Mifare Classic reader functionality + MIFARE_READER_ENABLE = "0x01"; + # Configure clock source - use XTAL (hardware crystal) instead of PLL (synthetic clock) + NXP_SYS_CLK_SRC_SEL = "0x01"; + NXP_SYS_CLK_FREQ_SEL = "0x00"; + NXP_SYS_CLOCK_TO_CFG = "0x01"; + # Configure the non-propriety NCI settings in EEPROM: + # 0x28: PN_NFC_DEP_SPEED = 0x00 (Data exchange: Highest Available Bit Rates) + # 0x21: PI_BIT_RATE = 0x00 (Maximum allowed bit rate: 106 Kbit/s) + # 0x30: LA_BIT_FRAME_SDD = 0x08 (Bit Frame SDD value to be sent in Byte 1 of SENS_RES) + # 0x31: LA_PLATFORM_CONFIG = 0x03 (Platform Configuration value to be sent in Byte 2 of SENS_RES) + # 0x33: LA_NFCID1 = [ 0x04 0x03 0x02 0x01 ] ("Unique" NFCID1 ID in SENS_RES) + # 0x54: LF_CON_BITR_F = 0x06 (Bit rates to listen for: Both) + # 0x50: LF_PROTOCOL_TYPE = 0x02 (Protocols supported in Listen Mode for NFC-F: NFC-DEP) + # 0x5B: LI_BIT_RATE = 0x00 (Maximum supported bit rate: 106 Kbit/s) + # 0x60: LN_WT = 0x0E (Waiting Time NFC-DEP WT_MAX default for Initiator) + # 0x80: RF_FIELD_INFO = 0x01 (Chip is allowed to emit RF Field Information Notifications) + # 0x81: RF_NFCEE_ACTION = 0x01 (Chip should send trigger notification for the default set of NFCEE actions) + # 0x82: NFCDEP_OP = 0x0E (NFC-DEP protocol behavior: Default flags, but also enable RTOX requests) + # 0x18: PF_BIT_RATE = 0x01 (NFC-F discovery polling initial bit rate: 106 Kbit/s) + NXP_CORE_CONF = '' + {20, 02, 2B, 0D, + 28, 01, 00, + 21, 01, 00, + 30, 01, 08, + 31, 01, 03, + 33, 04, 04, 03, 02, 01, + 54, 01, 06, + 50, 01, 02, + 5B, 01, 00, + 60, 01, 0E, + 80, 01, 01, + 81, 01, 01, + 82, 01, 0E, + 18, 01, 01 + } + ''; + # Configure the proprietary NXP extension to the NCI standard in EEPROM: + # 0xA0 0x5E: JEWEL_RID_CFG = 0x01 (Enable sending RID to T1T on RF) + # 0xA0 0x40: TAG_DETECTOR_CFG = 0x00 (Tag detector: Disable both AGC based detection and trace mode) + # 0xA0 0x43: TAG_DETECTOR_FALLBACK_CNT_CFG = 0x00 (Tag detector: Disable hybrid mode, only use LPCD to initiate polling) + # 0xA0 0x0F: DH_EEPROM_AREA_1 = [ 32 bytes of opaque Lenovo data ] (Custom configuration for the Lenovo customized chip firmware) + # See also https://github.com/nfc-tools/libnfc/issues/455#issuecomment-2221979571 + NXP_CORE_CONF_EXTN = '' + {20, 02, 30, 04, + A0, 5E, 01, 01, + A0, 40, 01, 00, + A0, 43, 01, 00, + A0, 0F, 20, + 00, 03, 1D, 01, 03, 00, 02, 00, + 01, 00, 01, 00, 00, 00, 00, 00, + 00, 00, 00, 00, 00, 00, 00, 00, + 00, 00, 00, 00, 00, 00, 00, 00 + } + ''; + # Firmware-specific protocol configuration parameters (one byte per protocol) + NXP_NFC_PROPRIETARY_CFG = "{05:FF:FF:06:81:80:70:FF:FF}"; + # Configure power supply of chip, use Lenovo driver configuration, which deviates a bit from the spec: + # 0xA0 0x0E: PMU_CFG = [ 0x16, 0x09, 0x00 ] (VBAT1 connected to 5V, TVDD monitoring: 3.6V, TxLDO Voltage in reader and card mode: 3.3V) + NXP_EXT_TVDD_CFG = "0x01"; + NXP_EXT_TVDD_CFG_1 = '' + {20, 02, 07, 01, + A0, 0E, 03, 16, 09, 00 + } + ''; + # Use the default for NFA_EE_MAX_EE_SUPPORTED stack size (concerns HCI) + NXP_NFC_MAX_EE_SUPPORTED = "0x00"; + }; + }; + + generateSettings = + cfgName: + let + toKeyValueLines = + obj: builtins.concatStringsSep "\n" (map (key: "${key}=${obj.${key}}") (builtins.attrNames obj)); + in + toKeyValueLines (defaultSettings.${cfgName} // (cfg.settings.${cfgName} or { })); +in +{ + options.hardware.nfc-nci = { + enable = lib.mkEnableOption "PN5xx kernel module with udev rules, libnfc-nci userland, and optional ifdnfc-nci PC/SC driver"; + + settings = lib.mkOption { + default = defaultSettings; + description = '' + Configuration to be written to the libncf-nci configuration files. + To understand the configuration format, refer to https://github.com/NXPNFCLinux/linux_libnfc-nci/tree/master/conf. + ''; + type = lib.types.attrs; + }; + + enableIFD = lib.mkOption { + type = lib.types.bool; + default = true; + description = '' + Register ifdnfc-nci as a serial reader with pcscd. + ''; + }; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = + [ + pkgs.libnfc-nci + ] + ++ lib.optionals cfg.enableIFD [ + pkgs.ifdnfc-nci + ]; + + environment.etc = { + "libnfc-nci.conf".text = generateSettings "nci"; + "libnfc-nxp-init.conf".text = generateSettings "init"; + "libnfc-nxp-pn547.conf".text = generateSettings "pn54x"; + "libnfc-nxp-pn548.conf".text = generateSettings "pn54x"; + }; + + services.udev.packages = [ + config.boot.kernelPackages.nxp-pn5xx + ]; + + boot.blacklistedKernelModules = [ + "nxp_nci_i2c" + "nxp_nci" + ]; + + boot.extraModulePackages = [ + config.boot.kernelPackages.nxp-pn5xx + ]; + + boot.kernelModules = [ + "nxp-pn5xx" + ]; + + services.pcscd.readerConfigs = lib.mkIf cfg.enableIFD [ + '' + FRIENDLYNAME "NFC NCI" + LIBPATH ${pkgs.ifdnfc-nci}/lib/libifdnfc-nci.so + CHANNELID 0 + '' + ]; + + # NFC chip looses power when system goes to sleep / hibernate, + # and needs to be re-initialized upon wakeup + powerManagement.resumeCommands = lib.mkIf cfg.enableIFD '' + systemctl restart pcscd.service + ''; + }; + + meta.maintainers = with lib.maintainers; [ stargate01 ]; +} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 05c4785400fb..9f97ac965ed8 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -85,6 +85,7 @@ ./hardware/network/eg25-manager.nix ./hardware/network/intel-2200bg.nix ./hardware/new-lg4ff.nix + ./hardware/nfc-nci.nix ./hardware/nitrokey.nix ./hardware/onlykey/default.nix ./hardware/openrazer.nix From 45f3a21fe2a34cb4b9a65ab1d1a29e1c4da2b9e9 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 6 Feb 2025 11:33:06 +0000 Subject: [PATCH 24/33] autobrr: 1.57.0 -> 1.58.0 --- pkgs/by-name/au/autobrr/package.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/au/autobrr/package.nix b/pkgs/by-name/au/autobrr/package.nix index da1b503e874f..1ec76b96fd95 100644 --- a/pkgs/by-name/au/autobrr/package.nix +++ b/pkgs/by-name/au/autobrr/package.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildGoModule, fetchFromGitHub, stdenvNoCC, @@ -12,12 +13,12 @@ let pname = "autobrr"; - version = "1.57.0"; + version = "1.58.0"; src = fetchFromGitHub { owner = "autobrr"; repo = "autobrr"; tag = "v${version}"; - hash = "sha256-RVkeSrL3ZfEz+oCICi8JFJ6AaOBBumi5mnnQYE5Gjt8="; + hash = "sha256-NH3BVD/wZH5L6x6GcXZrynKFiirLRC6u434EBYQs4qQ="; }; autobrr-web = stdenvNoCC.mkDerivation { @@ -39,7 +40,7 @@ let src sourceRoot ; - hash = "sha256-mABHRuZfjq9qNanfGGv+xDhs3bSufaWRecJypic8SWo="; + hash = "sha256-ESMrd+2oqytC1dQDQvncoqHGAvIFlH/1sTLrUTuSyDg="; }; postBuild = '' @@ -59,7 +60,7 @@ buildGoModule rec { src ; - vendorHash = "sha256-rCtUE2/IwR6AnXQNgeH0TQ0BL7g6vi9L128xP0PwOXc="; + vendorHash = "sha256-ifi4KFectr4UC1e+VJKnAWsx0f19XN2T3Paf2ud2/To="; preBuild = '' cp -r ${autobrr-web}/* web/dist @@ -70,7 +71,10 @@ buildGoModule rec { "-X main.commit=${src.tag}" ]; - doInstallCheck = true; + # In darwin, tests try to access /etc/protocols, which is not permitted. + doCheck = !stdenv.hostPlatform.isDarwin; + doInstallCheck = !stdenv.hostPlatform.isDarwin; + nativeInstallCheckInputs = [ versionCheckHook ]; From f56ea4095bb4faf653ac33ea75d9371df7070db4 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 10 Feb 2025 16:17:44 +0100 Subject: [PATCH 25/33] python3Packages.tensorflow: fix typo --- pkgs/development/python-modules/tensorflow/bin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tensorflow/bin.nix b/pkgs/development/python-modules/tensorflow/bin.nix index 2ca3c4c1dc61..b1767cb0eb22 100644 --- a/pkgs/development/python-modules/tensorflow/bin.nix +++ b/pkgs/development/python-modules/tensorflow/bin.nix @@ -64,7 +64,7 @@ buildPythonPackage rec { cuda = lib.optionalString cudaSupport (if isCudaJetson then "_jetson" else "_gpu"); key = "${platform}_${pyVerNoDot}${cuda}"; in - fetchurl (packages.${key} or (throw "tensoflow-bin: unsupported configuration: ${key}")); + fetchurl (packages.${key} or (throw "tensorflow-bin: unsupported configuration: ${key}")); buildInputs = [ llvmPackages.openmp ]; From ba5135dd8040ef300e515b46cf5992f8eb67e514 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 10 Feb 2025 15:58:19 +0000 Subject: [PATCH 26/33] nezha-theme-nazhua: 0.5.6 -> 0.5.7 --- pkgs/by-name/ne/nezha-theme-nazhua/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ne/nezha-theme-nazhua/package.nix b/pkgs/by-name/ne/nezha-theme-nazhua/package.nix index ed654b29d954..addda09564c0 100644 --- a/pkgs/by-name/ne/nezha-theme-nazhua/package.nix +++ b/pkgs/by-name/ne/nezha-theme-nazhua/package.nix @@ -12,13 +12,13 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "nezha-theme-nazhua"; - version = "0.5.6"; + version = "0.5.7"; src = fetchFromGitHub { owner = "hi2shark"; repo = "nazhua"; tag = "v${finalAttrs.version}"; - hash = "sha256-HqNiXkj3GLw5MlQu2fREwUYpT35txopli9SZcFCM90w="; + hash = "sha256-DkM+BV0Qw8vpSjxiHFcYUauP9SaiSDhAgKz+13tEsDI="; }; yarnOfflineCache = fetchYarnDeps { From 1ba6c7754fb6278c15f9c68360e6bfa4b0381d14 Mon Sep 17 00:00:00 2001 From: tklk Date: Mon, 10 Feb 2025 16:02:49 +0000 Subject: [PATCH 27/33] flintlock: 0.8.0 -> 0.8.1 Diff: https://github.com/weaveworks/flintlock/compare/v0.8.0...v0.8.1 --- pkgs/by-name/fl/flintlock/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fl/flintlock/package.nix b/pkgs/by-name/fl/flintlock/package.nix index 8a2f29cfb4e5..dccfa5f33a5d 100644 --- a/pkgs/by-name/fl/flintlock/package.nix +++ b/pkgs/by-name/fl/flintlock/package.nix @@ -11,13 +11,13 @@ buildGoModule rec { pname = "flintlock"; - version = "0.8.0"; + version = "0.8.1"; src = fetchFromGitHub { owner = "weaveworks"; repo = "flintlock"; rev = "v${version}"; - sha256 = "sha256-dBwuguOSIc4+cdxfW91kdyprayYu2m2WjBg3qBnVM98="; + sha256 = "sha256-Kbk94sqj0aPsVonPsiu8kbjhIOURB1kX9Lt3NURL+jk="; }; vendorHash = "sha256-Iv1qHEQLgw6huCA/6PKNmm+dS2yHgOvY/oy2fKjwEpY="; From 32e09278844c1bdb22d191710da4e87e60d35a55 Mon Sep 17 00:00:00 2001 From: Yarny0 <41838844+Yarny0@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:17:05 +0100 Subject: [PATCH 28/33] Revert "electrum: fixup Exec lines in .desktop" This reverts commit a879c725525b2321f505519ff0c71f182518f438. It is no longer needed, as electrum removed the PATH manipulation: https://github.com/spesmilo/electrum/commit/f15abd7cbd55c82833ad621754d3420895414f75 However, this commit also deviates from a plain revert, as it adds an additional replacement command to still substitute the `--testnet` command line, as it was done before. Note: Those `--replace` calls are removed here in order to stricten substitute calls with `--replace-fail` in a follow-up commit. --- pkgs/applications/misc/electrum/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 219046157cf8..a0aa8aa031e4 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -108,10 +108,8 @@ python3.pkgs.buildPythonApplication rec { postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace $out/share/applications/electrum.desktop \ - --replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum %u"' \ - "Exec=$out/bin/electrum %u" \ - --replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"' \ - "Exec=$out/bin/electrum --testnet %u" + --replace "Exec=electrum %u" "Exec=$out/bin/electrum %u" \ + --replace "Exec=electrum --testnet %u" "Exec=$out/bin/electrum --testnet %u" ''; postFixup = lib.optionalString enableQt '' From b0c4f34b535c4400f60bc4aa568adb39d53e2620 Mon Sep 17 00:00:00 2001 From: Yarny0 <41838844+Yarny0@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:32:09 +0100 Subject: [PATCH 29/33] electrum: substitute with `--replace-fail` The old `--replace` is deprecated, we use `--replace-fail` so changes in source code that might invalidate substitute invocations get noticed. Cf. commit e07a2fab7f065c3fa084027f07dcf8cafbd19394 . --- pkgs/applications/misc/electrum/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index a0aa8aa031e4..410cb3066189 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -87,18 +87,18 @@ python3.pkgs.buildPythonApplication rec { '' # make compatible with protobuf4 by easing dependencies ... substituteInPlace ./contrib/requirements/requirements.txt \ - --replace "protobuf>=3.20,<4" "protobuf>=3.20" + --replace-fail "protobuf>=3.20,<4" "protobuf>=3.20" # ... and regenerating the paymentrequest_pb2.py file protoc --python_out=. electrum/paymentrequest.proto substituteInPlace ./electrum/ecc_fast.py \ - --replace ${libsecp256k1_name} ${secp256k1}/lib/libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary} + --replace-fail ${libsecp256k1_name} ${secp256k1}/lib/libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary} '' + ( if enableQt then '' substituteInPlace ./electrum/qrscanner.py \ - --replace ${libzbar_name} ${zbar.lib}/lib/libzbar${stdenv.hostPlatform.extensions.sharedLibrary} + --replace-fail ${libzbar_name} ${zbar.lib}/lib/libzbar${stdenv.hostPlatform.extensions.sharedLibrary} '' else '' @@ -108,8 +108,8 @@ python3.pkgs.buildPythonApplication rec { postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace $out/share/applications/electrum.desktop \ - --replace "Exec=electrum %u" "Exec=$out/bin/electrum %u" \ - --replace "Exec=electrum --testnet %u" "Exec=$out/bin/electrum --testnet %u" + --replace-fail "Exec=electrum %u" "Exec=$out/bin/electrum %u" \ + --replace-fail "Exec=electrum --testnet %u" "Exec=$out/bin/electrum --testnet %u" ''; postFixup = lib.optionalString enableQt '' From e3d7bbab8b3bad048037823b6200ae17471225d5 Mon Sep 17 00:00:00 2001 From: Yarny0 <41838844+Yarny0@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:39:10 +0100 Subject: [PATCH 30/33] electrum: patch for aiorpcx 0.24 compatibility electrum is quite strict about the aiorpcx version is accepts. With commit 4bbf5300d44ee9420a59650ba668f70e3f101bde , Upstream already has a patch to extend the range of aiorpcx versions it permits: https://github.com/spesmilo/electrum/commit/171aa5ee5ad4e25b9da10f757d9d398e905b4945 As the patch does not cleanly apply to the distribution tarball we're using, we instead apply the required changes "by hand", with `substituteInPlace`. On top of the changes adapted from the upstream commit, we have to change the file `./electrum/electrum`: It is not part of the upstream source repository, but it gets created from `./run_electrum` when upstream creates the distribution tarball. Note that the commit at hand is similar to 0e513f0435b2edb2c53412df873b46c583b0f9b5 . --- pkgs/applications/misc/electrum/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 410cb3066189..43defb195023 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -85,6 +85,17 @@ python3.pkgs.buildPythonApplication rec { postPatch = '' + # fix compatibility with recent aiorpcx version + # (remove as soon as https://github.com/spesmilo/electrum/commit/171aa5ee5ad4e25b9da10f757d9d398e905b4945 is included in source tarball) + substituteInPlace ./contrib/requirements/requirements.txt \ + --replace-fail "aiorpcx>=0.22.0,<0.24" "aiorpcx>=0.22.0,<0.25" + substituteInPlace ./run_electrum \ + --replace-fail "if not ((0, 22, 0) <= aiorpcx._version < (0, 24)):" "if not ((0, 22, 0) <= aiorpcx._version < (0, 25)):" \ + --replace-fail "aiorpcX version {aiorpcx._version} does not match required: 0.22.0<=ver<0.24" "aiorpcX version {aiorpcx._version} does not match required: 0.22.0<=ver<0.25" + substituteInPlace ./electrum/electrum \ + --replace-fail "if not ((0, 22, 0) <= aiorpcx._version < (0, 24)):" "if not ((0, 22, 0) <= aiorpcx._version < (0, 25)):" \ + --replace-fail "aiorpcX version {aiorpcx._version} does not match required: 0.22.0<=ver<0.24" "aiorpcX version {aiorpcx._version} does not match required: 0.22.0<=ver<0.25" + # make compatible with protobuf4 by easing dependencies ... substituteInPlace ./contrib/requirements/requirements.txt \ --replace-fail "protobuf>=3.20,<4" "protobuf>=3.20" From f7408d31489c6e19d165f15ca0a988618df9df65 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron <886074+teto@users.noreply.github.com> Date: Mon, 10 Feb 2025 17:41:54 +0100 Subject: [PATCH 31/33] =?UTF-8?q?vimPlugins.rocks-nvim:=20add=20initLua=20?= =?UTF-8?q?for=20a=20working=20out=20of=20the=20box=20exper=E2=80=A6=20(#3?= =?UTF-8?q?75083)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vimPlugins.rocks-nvim: add initLua for a working out of the box experience added a test as well. Using NVIM_APPNAME to run "neovim.tests.nvim_with_rocks_nvim" in a minimal sandbox. --- .../editors/neovim/tests/default.nix | 12 ++++++++++++ .../editors/vim/plugins/overrides.nix | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/neovim/tests/default.nix b/pkgs/applications/editors/neovim/tests/default.nix index c6579c9ad17b..14d9803ee2d9 100644 --- a/pkgs/applications/editors/neovim/tests/default.nix +++ b/pkgs/applications/editors/neovim/tests/default.nix @@ -103,6 +103,13 @@ let ${pkgs.perl}/bin/perl -pe "s|\Q$NIX_STORE\E/[a-z0-9]{32}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" < "$luarc" > "$luarcGeneric" '' + buildCommand); + nvim_with_rocks_nvim = ( + wrapNeovimUnstable neovim-unwrapped { + extraName = "with-rocks-nvim"; + wrapperArgs = "--set NVIM_APPNAME test-rocks-nvim"; + plugins = [ vimPlugins.rocks-nvim ]; + } + ); in pkgs.recurseIntoAttrs (rec { @@ -367,5 +374,10 @@ in ${nvim-with-luasnip}/bin/nvim -i NONE --cmd "lua require'jsregexp'" -e +quitall! ''; + inherit nvim_with_rocks_nvim; + rocks_install_plenary = runTest nvim_with_rocks_nvim '' + ${nvim_with_rocks_nvim}/bin/nvim -V3log.txt -i NONE +'Rocks install plenary.nvim' +quit! -e + ''; + inherit (vimPlugins) corePlugins; }) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index d4ce6ebd97c9..27e72add1390 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -4019,7 +4019,6 @@ in "papis-nvim" "rest-nvim" "rocks-config-nvim" - "rocks-nvim" "rtp-nvim" "telescope-manix" "telescope-nvim" @@ -4032,3 +4031,20 @@ in in lib.genAttrs luarocksPackageNames toVimPackage ) +// { + + rocks-nvim = + (neovimUtils.buildNeovimPlugin { + luaAttr = luaPackages.rocks-nvim; + }).overrideAttrs + (oa: { + passthru = oa.passthru // { + initLua = '' + vim.g.rocks_nvim = { + luarocks_binary = "${neovim-unwrapped.lua.pkgs.luarocks_bootstrap}/bin/luarocks" + } + ''; + }; + + }); +} From f8bd998b4e6926445ab0fd7c95e1e29687c8edcf Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 10 Feb 2025 17:52:33 +0100 Subject: [PATCH 32/33] python3Packages.jax-cuda12-pjrt: don't try to build on aarch64-linux --- .../python-modules/jax-cuda12-pjrt/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix b/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix index b22e6fc6350f..bb0a01b2af4f 100644 --- a/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix +++ b/pkgs/development/python-modules/jax-cuda12-pjrt/default.nix @@ -29,16 +29,16 @@ let # When upgrading, you can get these hashes from jaxlib/prefetch.sh. See # https://github.com/google/jax/issues/12879 as to why this specific URL is the correct index. - # upstream does not distribute jax-cuda12-pjrt 0.4.38 binaries for aarch64-linux + # upstream does not distribute jax-cuda12-pjrt binaries for aarch64-linux srcs = { "x86_64-linux" = fetchurl { url = "https://storage.googleapis.com/jax-releases/cuda12_plugin/jax_cuda12_pjrt-${version}-py3-none-manylinux2014_x86_64.whl"; hash = "sha256-0jgzwbiF2WwnZAAOlQUvK1gnx31JLqaPZ+kDoTJlbbs="; }; - "aarch64-linux" = fetchurl { - url = "https://storage.googleapis.com/jax-releases/cuda12_plugin/jax_cuda12_pjrt-${version}-py3-none-manylinux2014_aarch64.whl"; - hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; - }; + # "aarch64-linux" = fetchurl { + # url = "https://storage.googleapis.com/jax-releases/cuda12_plugin/jax_cuda12_pjrt-${version}-py3-none-manylinux2014_aarch64.whl"; + # hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; + # }; }; in buildPythonPackage { From 5156904c711d340e303ad800b94369b3a7085e42 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 11 Feb 2025 03:05:17 +1000 Subject: [PATCH 33/33] kubernetes-controller-tools: 0.17.1 -> 0.17.2 (#380899) Co-authored-by: Sandro --- .../by-name/ku/kubernetes-controller-tools/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ku/kubernetes-controller-tools/package.nix b/pkgs/by-name/ku/kubernetes-controller-tools/package.nix index 8fa94f902d1f..6d92be797503 100644 --- a/pkgs/by-name/ku/kubernetes-controller-tools/package.nix +++ b/pkgs/by-name/ku/kubernetes-controller-tools/package.nix @@ -6,16 +6,16 @@ buildGoModule rec { pname = "controller-tools"; - version = "0.17.1"; + version = "0.17.2"; src = fetchFromGitHub { owner = "kubernetes-sigs"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-6tqUWsI8SJsBOUO9i+czilOJWlflZ8Sj/rdnZaLJeSQ="; + repo = "controller-tools"; + tag = "v${version}"; + sha256 = "sha256-AUYduzIEWCJDskoChXmQViR5ON4YZr4MKvFys03hBkY="; }; - vendorHash = "sha256-NX4e//77G+jTL2309x6+UEmFarsNWO/n0Pex2pJ+S/s="; + vendorHash = "sha256-Y7xYmD3fxAIo/NyLzBuSdbHIrduJ33SpK2I6LfOzNac="; ldflags = [ "-s"