diff options
author | figsoda <figsoda@pm.me> | 2022-11-04 10:31:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 10:31:06 -0400 |
commit | 6ca88b3b7a443ef065cd8614ef9091e5a4acdaa6 (patch) | |
tree | c9ff2fa7922458ed80ad49e2fbfa8f256d9c67f4 | |
parent | 366a420a08adb681857c46ee46707dc8c28fc052 (diff) | |
parent | 4660aeb783949b5b7a4e55b7f724bc7bd75a61ad (diff) |
Merge pull request #199366 from figsoda/guppy
cargo-guppy: init at unstable-2022-10-29
-rw-r--r-- | pkgs/development/tools/rust/cargo-guppy/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-guppy/default.nix b/pkgs/development/tools/rust/cargo-guppy/default.nix new file mode 100644 index 0000000000000..62e7b970b5161 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-guppy/default.nix @@ -0,0 +1,38 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, openssl +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-guppy"; + version = "unstable-2022-10-29"; + + src = fetchFromGitHub { + owner = "guppy-rs"; + repo = "guppy"; + rev = "448d830de4867c32eaa57911a392e47c81d1a0e0"; + sha256 = "sha256-Ce6WO01gN8Ip5smAyGNEg87vyFXFDIq6ilHTbEStm/c="; + }; + + cargoSha256 = "sha256-DR/k6g2uWCOhM20qROybsH4gTvH+Kd+jaDHGZ4loK7g="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + cargoBuildFlags = [ "-p" "cargo-guppy" ]; + cargoTestFlags = [ "-p" "cargo-guppy" ]; + + meta = with lib; { + description = "A command-line frontend for guppy"; + homepage = "https://github.com/guppy-rs/guppy/tree/main/cargo-guppy"; + license = with licenses; [ mit /* or */ asl20 ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0d7163d1b6a7c..d16e8e8fd14c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14954,6 +14954,7 @@ with pkgs; }; cargo-kcov = callPackage ../development/tools/rust/cargo-kcov { }; cargo-graph = callPackage ../development/tools/rust/cargo-graph { }; + cargo-guppy = callPackage ../development/tools/rust/cargo-guppy { }; cargo-hack = callPackage ../development/tools/rust/cargo-hack { }; cargo-license = callPackage ../development/tools/rust/cargo-license { }; cargo-llvm-cov = callPackage ../development/tools/rust/cargo-llvm-cov { }; |