5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
27 lines
835 B
Nix
27 lines
835 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Security, openssl, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-release";
|
|
version = "0.21.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "crate-ci";
|
|
repo = "cargo-release";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4iuJRwJeHmofJ1iwzeu4YkGaN+MZBdyzsJmdzncDmZo=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-LD+bEA4/PCEY+EvV2ysHFmJKBWT83bXuGUtgyiK/6i0=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
meta = with lib; {
|
|
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
|
|
homepage = "https://github.com/sunng87/cargo-release";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
};
|
|
}
|