2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
2024-05-15 15:35:15 +00:00
|
|
|
, CoreServices
|
2022-10-21 18:38:19 +00:00
|
|
|
, Security
|
|
|
|
, SystemConfiguration
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-clone";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.2.3";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janlikar";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-kK0J1Vfx1T17CgZ3DV9kQbAUxk4lEfje5p6QvdBS5VQ=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-6UUaOwu6N/XFdGEnoAX5zM4xTsqwHwPrmZ1t5huF6nM=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-05-15 15:35:15 +00:00
|
|
|
CoreServices
|
2022-10-21 18:38:19 +00:00
|
|
|
Security
|
|
|
|
SystemConfiguration
|
|
|
|
];
|
|
|
|
|
|
|
|
# requires internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cargo subcommand to fetch the source code of a Rust crate";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-clone";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/janlikar/cargo-clone";
|
|
|
|
changelog = "https://github.com/janlikar/cargo-clone/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer janlikar ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|