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

27 lines
827 B
Nix
Raw Normal View History

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