2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-guppy";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "unstable-2023-04-15";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guppy-rs";
|
|
|
|
repo = "guppy";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "e93f51ca56dc9cc310004931a906b6b486b93058";
|
|
|
|
sha256 = "sha256-kg1iWku+zAXG9cCYCD4rqKzKNtDt0hMCnE5QyhJpLq8=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoSha256 = "sha256-XKAre9L2mk31CgXbP53zR8mr92Jh9qVSx+sMkhqq/M4=";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|