Skip to content

Commit

Permalink
bmputil: added
Browse files Browse the repository at this point in the history
  • Loading branch information
shimunn committed Dec 21, 2024
1 parent 5b219dc commit fe0fbd1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/by-name/bm/bmputil/50-blackmagic.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="6018", GROUP="plugdev", MODE="0666"
28 changes: 28 additions & 0 deletions pkgs/by-name/bm/bmputil/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "bmputil";
version = "0.1.3";

src = fetchFromGitHub {
owner = "blackmagic-debug";
repo = pname;
rev = "v" + version;
hash = "sha256-LKtdwQbsPNEu3EDTowOXeFmi5OHOU3kq5f5xxevBjtM=";
};
cargoLock.lockFile = src + "/Cargo.lock";
postInstall = ''
mkdir -p $out/lib/udev
install -m 444 ${./.}/50-blackmagic.conf $out/lib/udev/
'';

meta = {
description = "Black Magic Probe Firmware Manager";
homepage = "https://github.com/blackmagic-debug/bmputil";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.shimun ];
};
}

0 comments on commit fe0fbd1

Please sign in to comment.