nixpkgs/pkgs/tools/package-management/cargo-release/default.nix

27 lines
827 B
Nix
Raw Normal View History

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