2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-01-20 10:41:00 +00:00
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, curl
|
|
|
|
, darwin
|
|
|
|
, git
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-release";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.24.4";
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-6vl8aVZc1pLRXNWbwCWOg/W40TXe29CtXZy2uOLc5BQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cargoHash = "sha256-xz6xjYHBltMo2abQxVTA9mAI4htqqxUc5s5ksKbmrno=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-08-25 08:27:29 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
curl
|
2023-01-20 10:41:00 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
git
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
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'';
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/crate-ci/cargo-release";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/crate-ci/cargo-release/blob/v${version}/CHANGELOG.md";
|
2021-08-25 08:27:29 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ figsoda gerschtli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|