3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/cargo-release/default.nix

28 lines
835 B
Nix
Raw Normal View History

{ 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";
2022-01-11 03:23:17 +00:00
version = "0.19.0";
2018-04-23 00:13:19 +01:00
src = fetchFromGitHub {
2021-08-23 17:57:56 +01:00
owner = "crate-ci";
2018-04-23 00:13:19 +01:00
repo = "cargo-release";
2019-09-22 09:41:51 +01:00
rev = "v${version}";
2022-01-11 03:23:17 +00:00
sha256 = "sha256-u1XXkenMIflbXACxOeeq7Mg5ubel4oFXpL/uy6McQf0=";
2018-04-23 00:13:19 +01:00
};
2022-01-11 03:23:17 +00:00
cargoSha256 = "sha256-7QOaSEaX2JXtTQQo3RXbMpZg6V2wzfoQbId9QOD9sCA=";
2018-04-23 00:13:19 +01:00
nativeBuildInputs = [ pkg-config ];
2021-08-23 17:57:56 +01:00
2020-08-17 01:36:06 +01:00
buildInputs = [ openssl ]
2021-08-23 17:57:56 +01:00
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
2018-12-27 09:46:50 +00:00
meta = with lib; {
2018-04-23 00:13:19 +01:00
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
homepage = "https://github.com/sunng87/cargo-release";
2021-08-23 17:57:10 +01:00
license = with licenses; [ asl20 /* or */ mit ];
2018-04-23 00:13:19 +01:00
maintainers = with maintainers; [ gerschtli ];
};
}