From 3a42f32d68b2db4761dc99d78293359ec8a26c10 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 23 Oct 2023 22:03:36 +0200 Subject: [PATCH] cyme: init at 1.5.0 --- pkgs/by-name/cy/cyme/package.nix | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/cy/cyme/package.nix diff --git a/pkgs/by-name/cy/cyme/package.nix b/pkgs/by-name/cy/cyme/package.nix new file mode 100644 index 000000000000..e113484ee054 --- /dev/null +++ b/pkgs/by-name/cy/cyme/package.nix @@ -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"; + }; +}