mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
openocd-rp2040: move override to pkgs/by-name
and update the description.
This commit is contained in:
parent
6a87a91cd5
commit
633dc17a66
2 changed files with 33 additions and 16 deletions
33
pkgs/by-name/op/openocd-rp2040/package.nix
Normal file
33
pkgs/by-name/op/openocd-rp2040/package.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
openocd,
|
||||
autoreconfHook,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
openocd.overrideAttrs (
|
||||
finalAttrs: old: {
|
||||
pname = "openocd-rp2040";
|
||||
version = "2.2.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "openocd";
|
||||
tag = "sdk-${finalAttrs.version}";
|
||||
hash = "sha256-ZfbZVFVncHa1MvNJb4jbnU66vnlwVLBaOXPdgLqAneM=";
|
||||
# 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 = "Raspberry Pi's downstream fork of OpenOCD for use with Pico-series devices";
|
||||
homepage = "https://github.com/raspberrypi/openocd";
|
||||
maintainers = with lib.maintainers; [
|
||||
aiyion
|
||||
lu15w1r7h
|
||||
];
|
||||
};
|
||||
}
|
||||
)
|
||||
|
|
@ -5501,22 +5501,6 @@ with pkgs;
|
|||
|
||||
openai-whisper = with python3.pkgs; toPythonApplication openai-whisper;
|
||||
|
||||
openocd-rp2040 = openocd.overrideAttrs (old: {
|
||||
pname = "openocd-rp2040";
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "openocd";
|
||||
rev = "4d87f6dcae77d3cbcd8ac3f7dc887adf46ffa504";
|
||||
hash = "sha256-bBqVoHsnNoaC2t8hqcduI8GGlO0VDMUovCB0HC+rxvc=";
|
||||
# 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
|
||||
];
|
||||
});
|
||||
|
||||
oprofile = callPackage ../development/tools/profiling/oprofile {
|
||||
libiberty_static = libiberty.override { staticBuild = true; };
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue