lol
1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5, Security
6, curl
7, openssl
8, pkg-config
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "cargo-release";
13 version = "0.23.1";
14
15 src = fetchFromGitHub {
16 owner = "crate-ci";
17 repo = "cargo-release";
18 rev = "v${version}";
19 sha256 = "sha256-C5m1mRpkMCeR4TCbaFvH+5Jyko9RGP9OMi+HJx5AIZg=";
20 };
21
22 cargoSha256 = "sha256-Nuc/kJdAOX1SDynZQNTvq7QJq1kYD/6TuEYonUhPVuU=";
23
24 nativeBuildInputs = [ pkg-config ];
25
26 buildInputs = [ openssl ]
27 ++ lib.optionals stdenv.isDarwin [ Security curl ];
28
29 meta = with lib; {
30 description = ''Cargo subcommand "release": everything about releasing a rust crate'';
31 homepage = "https://github.com/sunng87/cargo-release";
32 license = with licenses; [ asl20 /* or */ mit ];
33 maintainers = with maintainers; [ gerschtli ];
34 };
35}