From 5b265d330a1bc243d4db618080dc263d639feb3c Mon Sep 17 00:00:00 2001 From: "Burfeind, Jan-Niklas" Date: Thu, 21 May 2026 15:42:58 +0200 Subject: [PATCH 1/2] openocd: enable strictDeps and structured attrs which affects openocd-rp2040 as well. --- pkgs/by-name/op/openocd/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/op/openocd/package.nix b/pkgs/by-name/op/openocd/package.nix index 037a233c1e85..e8fdd29854b7 100644 --- a/pkgs/by-name/op/openocd/package.nix +++ b/pkgs/by-name/op/openocd/package.nix @@ -82,6 +82,9 @@ stdenv.mkDerivation (finalAttrs: { ln -s "$rules" "$out/etc/udev/rules.d/" ''; + __structuredAttrs = true; + strictDeps = true; + meta = { description = "Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing"; mainProgram = "openocd"; From 87c3e4487570ce5ffd88bf1a5e30618125c18b82 Mon Sep 17 00:00:00 2001 From: "Burfeind, Jan-Niklas" Date: Thu, 21 May 2026 15:28:13 +0200 Subject: [PATCH 2/2] openocd-adi: init at 0.12.0-1.3.1-1 --- pkgs/by-name/op/openocd-adi/package.nix | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/op/openocd-adi/package.nix diff --git a/pkgs/by-name/op/openocd-adi/package.nix b/pkgs/by-name/op/openocd-adi/package.nix new file mode 100644 index 000000000000..018d9552e39c --- /dev/null +++ b/pkgs/by-name/op/openocd-adi/package.nix @@ -0,0 +1,30 @@ +{ + openocd, + autoreconfHook, + lib, + fetchFromGitHub, +}: + +openocd.overrideAttrs (old: { + pname = "openocd-adi"; + version = "0.12.0-1.3.1-1"; + src = fetchFromGitHub { + owner = "analogdevicesinc"; + repo = "openocd"; + tag = "0.12.0-1.3.1-1"; + hash = "sha256-e25mAxUmbF/hZC+aWRMt9HdwKY0FClNrZXwP3888Z9A="; + # openocd disables the vendored libraries that use submodules and replaces them with nix versions. + # this works out as one of the submodule sources seems to be flakey. + fetchSubmodules = false; + }; + nativeBuildInputs = old.nativeBuildInputs ++ [ + autoreconfHook + ]; + meta = openocd.meta // { + description = "ADI fork of OpenOCD"; + homepage = "https://github.com/analogdevicesinc/openocd"; + maintainers = with lib.maintainers; [ + aiyion + ]; + }; +})