mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
bmputil: init at 0.1.3
This commit is contained in:
parent
cdd502880e
commit
cbcd3121c9
1 changed files with 40 additions and 0 deletions
40
pkgs/by-name/bm/bmputil/package.nix
Normal file
40
pkgs/by-name/bm/bmputil/package.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
blackmagic,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "bmputil";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blackmagic-debug";
|
||||
repo = "bmputil";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-LKtdwQbsPNEu3EDTowOXeFmi5OHOU3kq5f5xxevBjtM=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-32dTB5gOMgy6Fn62p68tAZB8AYwh1BAW+kwwuZPGJyM=";
|
||||
|
||||
postInstall = ''
|
||||
install -Dm 444 ${blackmagic.src}/driver/99-blackmagic.rules $out/lib/udev/rules.d/99-blackmagic.rules
|
||||
'';
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "--version";
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Black Magic Probe Firmware Manager";
|
||||
homepage = "https://github.com/blackmagic-debug/bmputil";
|
||||
license = with lib.licenses; [
|
||||
mit
|
||||
asl20
|
||||
];
|
||||
mainProgram = "bmputil";
|
||||
maintainers = [ lib.maintainers.shimun ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue