From ba07d3384385e84f32e26f30975a25a2bdb03adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Tue, 26 Sep 2023 21:51:12 +0200 Subject: [PATCH] cargo-bump: init at 1.1.1 (#257410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- pkgs/by-name/ca/cargo-bump/package.nix | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-bump/package.nix diff --git a/pkgs/by-name/ca/cargo-bump/package.nix b/pkgs/by-name/ca/cargo-bump/package.nix new file mode 100644 index 000000000000..76f21c1ca027 --- /dev/null +++ b/pkgs/by-name/ca/cargo-bump/package.nix @@ -0,0 +1,36 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-bump"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "rustadopt"; + repo = "cargo-bump"; + rev = "v${version}"; + hash = "sha256-PhA7uC2gJcBnUQPWgZC51p/KTSxSGld3m+dd6BhW6q8="; + }; + + cargoHash = "sha256-mp2y5q0GYfSlB5aPC6MY9Go8a2JAiPKtVYL9SewfloI="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "Increments the version number of the current project."; + homepage = "https://github.com/wraithan/cargo-bump"; + license = with licenses; [ isc ]; + maintainers = with maintainers; [ cafkafk ]; + }; +}