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