diff options
author | figsoda <figsoda@pm.me> | 2022-09-18 21:31:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 21:31:00 -0400 |
commit | 8a5b9ee7b7a2b38267c9481f5c629c015108ab0d (patch) | |
tree | 97795e424eacd7283454c49001c124efabd4d3fe /pkgs | |
parent | f4269d3567d6c7becddb3843b4a8ac78db9ae8cf (diff) | |
parent | dbb5a3db1aa550f8dd1b287b973807065208c445 (diff) |
Merge pull request #191850 from figsoda/cargo-temp
cargo-temp: init at 0.2.13
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/rust/cargo-temp/default.nix | 22 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-temp/default.nix b/pkgs/development/tools/rust/cargo-temp/default.nix new file mode 100644 index 0000000000000..4956ce52333d1 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-temp/default.nix @@ -0,0 +1,22 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-temp"; + version = "0.2.13"; + + src = fetchFromGitHub { + owner = "yozhgoor"; + repo = pname; + rev = "v${version}"; + sha256 = "0g9ddzvgrb45ddflbcwpq320zwj4qrxfs07dydy6r86whdn1mlc0"; + }; + + cargoSha256 = "sha256-5E1Fkipqb2nONQNAuj9xKn8k2PhH9IZ48UosNlPpP6c="; + + meta = with lib; { + description = "A CLI tool that allow you to create a temporary new Rust project using cargo with already installed dependencies"; + homepage = "https://github.com/yozhgoor/cargo-temp"; + license = with licenses; [ mit /* or */ asl20 ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ff8399e0b9a48..32580f54e941d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14706,6 +14706,7 @@ with pkgs; cargo-tally = callPackage ../development/tools/rust/cargo-tally { inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit; }; + cargo-temp = callPackage ../development/tools/rust/cargo-temp { }; cargo-udeps = callPackage ../development/tools/rust/cargo-udeps { inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration; }; |