nixpkgs/pkgs/by-name/ca/cargo-clone/package.nix
2025-05-29 17:04:28 +02:00

49 lines
1,013 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
zlib,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-clone";
version = "1.2.3";
src = fetchFromGitHub {
owner = "janlikar";
repo = "cargo-clone";
rev = "v${version}";
sha256 = "sha256-kK0J1Vfx1T17CgZ3DV9kQbAUxk4lEfje5p6QvdBS5VQ=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-IbNwlVKGsi70G+ATimRZbHbW91vFddQl//dfAM6JO8I=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
zlib
];
# requires internet access
doCheck = false;
meta = with lib; {
description = "Cargo subcommand to fetch the source code of a Rust crate";
mainProgram = "cargo-clone";
homepage = "https://github.com/janlikar/cargo-clone";
changelog = "https://github.com/janlikar/cargo-clone/blob/v${version}/CHANGELOG.md";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [
figsoda
matthiasbeyer
janlikar
];
};
}