diff options
author | figsoda <figsoda@pm.me> | 2022-10-11 19:18:15 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-10-11 20:13:32 -0400 |
commit | 538299fed412117d502c18bba09a7a3940e11df3 (patch) | |
tree | 7844ee4d6db0aede9876df0d7ea8b12cbcfb0aa3 /pkgs/development/tools/rust/cargo-clone | |
parent | 4b7ae82d242859d7f5d401a388d81fd47399b5fe (diff) |
cargo-clone: init at 1.1.0
Diffstat (limited to 'pkgs/development/tools/rust/cargo-clone')
-rw-r--r-- | pkgs/development/tools/rust/cargo-clone/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-clone/default.nix b/pkgs/development/tools/rust/cargo-clone/default.nix new file mode 100644 index 0000000000000..68af8c0a2d391 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-clone/default.nix @@ -0,0 +1,41 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, openssl +, stdenv +, Security +, SystemConfiguration +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-clone"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "janlikar"; + repo = pname; + rev = "v${version}"; + sha256 = "1lfg47kw07k4r795n0iixl5cnrb13g74hqlbp8jzbypr255bc16q"; + }; + + cargoSha256 = "sha256-rJcTl5fe3vkNNyLRvm7q5KmzyJXchh1/JuzK0GFhHLk="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ + Security + SystemConfiguration + ]; + + # requires internet access + doCheck = false; + + meta = with lib; { + description = "A cargo subcommand to fetch the source code of a Rust crate"; + 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 ]; + }; +} |