biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / rust / cargo-release / default.nix
blob31e03dfeaa4ef6e825f9f65df0b092b71c530296
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , libgit2
6 , openssl
7 , stdenv
8 , curl
9 , darwin
10 , git
13 rustPlatform.buildRustPackage rec {
14   pname = "cargo-release";
15   version = "0.25.0";
17   src = fetchFromGitHub {
18     owner = "crate-ci";
19     repo = "cargo-release";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-UJdGbuQfvlZHjCKyHCXPDJ5AdUWJCRUS/vNeTKAwyYI=";
22   };
24   cargoLock = {
25     lockFile = ./Cargo.lock;
26     outputHashes = {
27       "cargo-test-macro-0.1.0" = "sha256-jXWdCc3wxcF02uL2OyMepJ+DmINAHRYtAUH6L16bCjI=";
28     };
29   };
31   nativeBuildInputs = [
32     pkg-config
33   ];
35   buildInputs = [
36     libgit2
37     openssl
38   ] ++ lib.optionals stdenv.isDarwin [
39     curl
40     darwin.apple_sdk.frameworks.SystemConfiguration
41   ];
43   nativeCheckInputs = [
44     git
45   ];
47   # disable vendored-libgit2 and vendored-openssl
48   buildNoDefaultFeatures = true;
50   meta = with lib; {
51     description = ''Cargo subcommand "release": everything about releasing a rust crate'';
52     mainProgram = "cargo-release";
53     homepage = "https://github.com/crate-ci/cargo-release";
54     changelog = "https://github.com/crate-ci/cargo-release/blob/v${version}/CHANGELOG.md";
55     license = with licenses; [ asl20 /* or */ mit ];
56     maintainers = with maintainers; [ figsoda gerschtli ];
57   };