From dbb5a3db1aa550f8dd1b287b973807065208c445 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 18 Sep 2022 16:55:11 -0400 Subject: [PATCH] cargo-temp: init at 0.2.13 --- .../tools/rust/cargo-temp/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-temp/default.nix 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 000000000000..4956ce52333d --- /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 e35d9a37baba..10df36cd8968 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14688,6 +14688,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; };