From a8084dbe0233e4e9c1aa8de83386b5ef0d3503a0 Mon Sep 17 00:00:00 2001 From: Vito Secona Date: Sat, 16 Aug 2025 14:48:08 +0700 Subject: [PATCH] cargo-plumbing: init at 0.0.3 --- pkgs/by-name/ca/cargo-plumbing/package.nix | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-plumbing/package.nix diff --git a/pkgs/by-name/ca/cargo-plumbing/package.nix b/pkgs/by-name/ca/cargo-plumbing/package.nix new file mode 100644 index 000000000000..73b5e7e20cdb --- /dev/null +++ b/pkgs/by-name/ca/cargo-plumbing/package.nix @@ -0,0 +1,44 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenvNoCC, + pkg-config, + openssl, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "cargo-plumbing"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "crate-ci"; + repo = "cargo-plumbing"; + tag = "v${finalAttrs.version}"; + hash = "sha256-x8xH7XH91FtOn5knVL7mkcDTGvXtVVL70HIi8V9z54o="; + }; + + cargoHash = "sha256-16rY8uk9ViEaYIqiZHHU1UApAdNXAETqgFzUWNto6po="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + passthru.updateScript = nix-update-script { }; + + doCheck = !stdenvNoCC.hostPlatform.isDarwin; + + meta = { + description = "Proposed plumbing commands for cargo"; + homepage = "https://github.com/crate-ci/cargo-plumbing"; + changelog = "https://github.com/crate-ci/cargo-plumbing/blob/v${finalAttrs.version}/CHANGELOG.md"; + license = with lib.licenses; [ + asl20 # or + mit + ]; + maintainers = with lib.maintainers; [ + secona + ]; + }; +})