2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Security, openssl, pkg-config }:
|
2018-04-23 00:13:19 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "cargo-release";
|
2021-01-19 10:21:47 +00:00
|
|
|
version = "0.13.10";
|
2018-04-23 00:13:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sunng87";
|
|
|
|
repo = "cargo-release";
|
2019-09-22 09:41:51 +01:00
|
|
|
rev = "v${version}";
|
2021-01-19 10:21:47 +00:00
|
|
|
sha256 = "sha256-WWU+aNMNOOstHiGRE5nj2biWCL3uwyqJKgt0xCAfS0s=";
|
2018-04-23 00:13:19 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 10:21:47 +00:00
|
|
|
cargoSha256 = "sha256-G3UgcFW0WxvCYRvHCTuRpSCOT3XdvdZCN53HhpWQxS4=";
|
2018-04-23 00:13:19 +01:00
|
|
|
|
2020-01-02 20:47:58 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-08-17 01:36:06 +01:00
|
|
|
buildInputs = [ openssl ]
|
2021-01-15 09:19:50 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2018-12-27 09:46:50 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-23 00:13:19 +01:00
|
|
|
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sunng87/cargo-release";
|
2018-04-23 00:13:19 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|