Files
nixpkgs/pkgs/by-name/ca/cargo-release/package.nix
Michael Daniels 1d0bb7b61b treewide: drop figsoda as maintainer (part 3)
s/^\s*figsoda\s*$//
2025-11-02 20:16:11 -05:00

59 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libgit2,
openssl,
stdenv,
curl,
git,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-release";
version = "0.25.20";
src = fetchFromGitHub {
owner = "crate-ci";
repo = "cargo-release";
tag = "v${version}";
hash = "sha256-z2QsQvB+j8yGJPHCoOwpYq8Z1P5paybpA9FfKSAnRgg=";
};
cargoHash = "sha256-3PGvqxxdFIwv15Pa/FrQcp3kKLjC78LZcNNlEDbFKYs=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libgit2
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
curl
];
nativeCheckInputs = [
git
];
# disable vendored-libgit2 and vendored-openssl
buildNoDefaultFeatures = true;
meta = {
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
mainProgram = "cargo-release";
homepage = "https://github.com/crate-ci/cargo-release";
changelog = "https://github.com/crate-ci/cargo-release/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [
asl20 # or
mit
];
maintainers = with lib.maintainers; [
gerschtli
];
};
}