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

27 lines
817 B
Nix
Raw Normal View History

{ lib, 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";
2021-05-18 10:07:14 +00:00
version = "0.13.11";
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}";
2021-05-18 10:07:14 +00:00
sha256 = "sha256-v0XKLwxUIxBt9hIUzprz+VsxCRifH1/SbNcI0sH2ENM=";
2018-04-22 23:13:19 +00:00
};
2021-05-18 10:07:14 +00:00
cargoSha256 = "sha256-zbET6UsV29hAL83rw3XRgrcM5FABFNI3w3Kbd61FS7E=";
2018-04-22 23:13:19 +00:00
nativeBuildInputs = [ pkg-config ];
2020-08-17 00:36:06 +00:00
buildInputs = [ openssl ]
2021-01-15 09:19:50 +00:00
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
2018-12-27 09:46:50 +00:00
meta = with lib; {
2018-04-22 23:13:19 +00:00
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 ];
};
}