2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-guppy";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "unstable-2023-06-26";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guppy-rs";
|
|
|
|
repo = "guppy";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "c05b95997a127cebef76d3b238e0341086e59e32";
|
|
|
|
sha256 = "sha256-CQ0bpc5pmPMQMQ+8mcrUwo19zqyfkk5pE/lWRr9azXs=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoSha256 = "sha256-OHtg3za8EyQVYQ6XQzLK7UgvGSl8ObfeKURFL6vBDnE=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|