cyme: init at 1.5.0

This commit is contained in:
h7x4 2023-10-23 22:03:36 +02:00
parent 7cd0bd5cbb
commit 3a42f32d68
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -0,0 +1,37 @@
{
lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, libusb1
, udev
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "cyme";
version = "1.5.0";
src = fetchFromGitHub {
owner = "tuna-f1sh";
repo = "cyme";
rev = "v${version}";
hash = "sha256-UXh97pHJ9wa/xSslHLB7WVDwLKJYvLPgmPX8RvKrsTI=";
};
cargoHash = "sha256-hSd53K50Y4K/fYGfsT2fHUaipVSpeYN6/EOFlv4ocuE=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 udev ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/tuna-f1sh/cyme";
description = "A modern cross-platform lsusb";
license = licenses.gpl3Only;
maintainers = with maintainers; [ h7x4 ];
platforms = platforms.unix;
mainProgram = "cyme";
};
}