mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
28 lines
835 B
Nix
28 lines
835 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Security, openssl, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-release";
|
|
version = "0.20.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "crate-ci";
|
|
repo = "cargo-release";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-KWLZdFpRwtdP17x71IU2MGFwd1SNnTRcgTUoW1p5Px4=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-CTaEWANx3s7YCm8pqGWuvGqR362YtVjmbnc9V3kC8pI=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
meta = with lib; {
|
|
description = ''Cargo subcommand "release": everything about releasing a rust crate'';
|
|
homepage = "https://github.com/sunng87/cargo-release";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
};
|
|
}
|