27 lines
827 B
Nix
27 lines
827 B
Nix
{ stdenv, rustPlatform, fetchFromGitHub, libiconv, Security, openssl, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-release";
|
|
version = "0.13.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sunng87";
|
|
repo = "cargo-release";
|
|
rev = "v${version}";
|
|
sha256 = "098p6yfq8nlfckr61j3pkimwzrg5xb2i34nxvk2hiv1njl1vrqng";
|
|
};
|
|
|
|
cargoSha256 = "07rmp4j4jpzd1rz59wsjmzmj2qkc2x4wrs9pafqrym58ypm8i4gx";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
|
|
homepage = "https://github.com/sunng87/cargo-release";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
};
|
|
}
|