openocd-adi: init at 0.12.0-1.3.1-1 (#522658)

This commit is contained in:
Bjørn Forsman
2026-05-21 18:07:44 +00:00
committed by GitHub
2 changed files with 33 additions and 0 deletions
+30
View File
@@ -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
];
};
})
+3
View File
@@ -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";