From 1fd2711b2dcb83b82d868c3bd885c248fb3ff6f6 Mon Sep 17 00:00:00 2001 From: Max Niederman Date: Sun, 3 Nov 2024 19:03:17 -0800 Subject: [PATCH] cargo-v5: init at 0.8.2 --- pkgs/by-name/ca/cargo-v5/package.nix | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-v5/package.nix diff --git a/pkgs/by-name/ca/cargo-v5/package.nix b/pkgs/by-name/ca/cargo-v5/package.nix new file mode 100644 index 000000000000..59f5b3003e9b --- /dev/null +++ b/pkgs/by-name/ca/cargo-v5/package.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + pkg-config, + dbus, + udev, + openssl, +}: + +rustPlatform.buildRustPackage { + pname = "cargo-v5"; + version = "0.8.2"; + + src = fetchFromGitHub { + owner = "vexide"; + repo = "cargo-v5"; + rev = "9d5f6e014c80838ff2b0cca401bcbd518c1e9274"; + hash = "sha256-bXzJvlhG/IJOu+D1iluJD3wDoiJXWzXYJ+ZUG6xMCeA="; + }; + + cargoHash = "sha256-OQ3XY8RzmjGZWFyTY3HY9AYb8qDHHeEAuWa+3WNOtRM="; + + buildFeatures = [ "full" ]; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + dbus + udev + openssl + ]; + + meta = { + description = "Cargo tool for working with VEX V5 Rust projects"; + mainProgram = "cargo-v5"; + homepage = "https://github.com/vexide/cargo-v5"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ max-niederman ]; + }; +}