2022-10-22 10:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
|
|
|
, curl
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2018-04-22 23:13:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "cargo-release";
|
2023-01-07 18:21:35 +00:00
|
|
|
version = "0.24.3";
|
2018-04-22 23:13:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-23 16:57:56 +00:00
|
|
|
owner = "crate-ci";
|
2018-04-22 23:13:19 +00:00
|
|
|
repo = "cargo-release";
|
2023-01-07 22:11:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ggB6gDlIuHPgJJg9TsHXHOKAm7+6OjXzoAT74YUB1n8=";
|
2018-04-22 23:13:19 +00:00
|
|
|
};
|
|
|
|
|
2023-01-07 18:21:35 +00:00
|
|
|
cargoHash = "sha256-gBVcQzuJNDwdC59gaOYqvaJDP46wJ9CglYbSPt3zkZ8=";
|
2018-04-22 23:13:19 +00:00
|
|
|
|
2023-01-07 22:11:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-08-23 16:57:56 +00:00
|
|
|
|
2023-01-07 22:11:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
curl
|
|
|
|
];
|
2018-12-27 09:46:50 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-22 23:13:19 +00:00
|
|
|
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/sunng87/cargo-release";
|
2023-01-07 22:11:00 +00:00
|
|
|
changelog = "https://github.com/crate-ci/cargo-release/blob/v${version}/CHANGELOG.md";
|
2021-08-23 16:57:10 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2018-04-22 23:13:19 +00:00
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|