From 86313e7339ec7430a6faed05fc48bdfcffe0a08a Mon Sep 17 00:00:00 2001 From: Goldstein Date: Sun, 25 Dec 2022 10:09:48 +0300 Subject: [PATCH] cargo-mommy: init at 0.1.1 --- .../tools/rust/cargo-mommy/default.nix | 20 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-mommy/default.nix diff --git a/pkgs/development/tools/rust/cargo-mommy/default.nix b/pkgs/development/tools/rust/cargo-mommy/default.nix new file mode 100644 index 000000000000..b05282f4f779 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-mommy/default.nix @@ -0,0 +1,20 @@ +{ lib, rustPlatform, fetchCrate }: + +rustPlatform.buildRustPackage rec { + pname = "cargo-mommy"; + version = "0.1.1"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-p1SAYUQu1HpYJ6TbLJ3lfA9VlKHvB7z5yiFXmTQOCXA="; + }; + + cargoSha256 = "sha256-5RidY+6EF23UNzz1suSdA4LL59FalipaJ+ISSsmiCXM="; + + meta = with lib; { + description = "Cargo wrapper that encourages you after running commands"; + homepage = "https://github.com/Gankra/cargo-mommy"; + license = with licenses; [ mit asl20 ]; + maintainers = with maintainers; [ GoldsteinE ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aed4f4b75471..d83886b3f228 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15407,6 +15407,7 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; }; cargo-modules = callPackage ../development/tools/rust/cargo-modules { }; + cargo-mommy = callPackage ../development/tools/rust/cargo-mommy { }; cargo-msrv = callPackage ../development/tools/rust/cargo-msrv { inherit (darwin.apple_sdk.frameworks) Security; };