add stlink-tool
This commit is contained in:
parent
37776fcf8c
commit
d6b550bc98
|
@ -43,6 +43,7 @@
|
|||
hactoolnet = final.callPackage ./packages/hactoolnet { };
|
||||
ipsw = final.callPackage ./packages/ipsw { };
|
||||
jlink = final.callPackage ./packages/jlink { };
|
||||
stlink-tool = final.callPackage ./packages/stlink-tool { };
|
||||
zephyrPackages = final.callPackage ./packages/zephyr { };
|
||||
|
||||
inherit (final.python3.pkgs) axicli vpype;
|
||||
|
|
21
packages/stlink-tool/default.nix
Normal file
21
packages/stlink-tool/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, fetchFromGitHub, pkg-config, libusb1 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stlink-tool";
|
||||
version = "unstable-2024-01-31";
|
||||
src = fetchFromGitHub {
|
||||
owner = "blackmagic-debug";
|
||||
repo = pname;
|
||||
fetchSubmodules = true;
|
||||
rev = "dff59ad2d9986b147076e3098c360656f9b22d65";
|
||||
hash = "sha256-Jv2W3tpCDMfHSXXCxtdkUQ+TRhUYv5qkCAU7r186+8U=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ libusb1 ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp stlink-tool $out/bin
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue