2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
|
|
|
, curl
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-release";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "0.24.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-25 08:27:29 +00:00
|
|
|
owner = "crate-ci";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "cargo-release";
|
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-+sMlbihareVn//TaCTEMU0iDnboneRhb8FcPmY0Q04A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
cargoSha256 = "sha256-MqS8jSjukZfD86onInFZJOtI5ntNmpb/tvwAil2rAZA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-08-25 08:27:29 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [ openssl ]
|
2022-10-30 15:09:59 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security curl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
|
|
|
|
homepage = "https://github.com/sunng87/cargo-release";
|
2021-08-25 08:27:29 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|