biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / rust / cargo-shuttle / default.nix
blobfcc7ff4756f95b2872fac08e24c252181342c45b
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , zlib
7 , stdenv
8 , darwin
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "cargo-shuttle";
13   version = "0.39.0";
15   src = fetchFromGitHub {
16     owner = "shuttle-hq";
17     repo = "shuttle";
18     rev = "v${version}";
19     hash = "sha256-U6C6pUl6Re3fYt5KlBItpErboYXctsotunsUpWmZxiY=";
20   };
22   cargoLock = {
23     lockFile = ./Cargo.lock;
24     outputHashes = {
25       "async-posthog-0.2.3" = "sha256-V0f9+UKZkqh80p7UjINEbAW9y8cKBmJTRjAJZV3no1M=";
26       "hyper-reverse-proxy-0.5.2-dev" = "sha256-R1ZXGgWvwHWRHmKX823QLqM6ZJW+tzWUXigKkAyI5OE=";
27       "tokiotest-httpserver-0.2.1" = "sha256-IPUaglIDwCUoczCCnX+R1IBqtc0s8b8toKEL8zN3/i8=";
28     };
29   };
31   nativeBuildInputs = [
32     pkg-config
33   ];
35   buildInputs = [
36     openssl
37     zlib
38   ] ++ lib.optionals stdenv.isDarwin [
39     darwin.apple_sdk.frameworks.CoreServices
40     darwin.apple_sdk.frameworks.SystemConfiguration
41   ];
43   cargoBuildFlags = [ "-p" "cargo-shuttle" ];
45   cargoTestFlags = cargoBuildFlags ++ [
46     # other tests are failing for different reasons
47     "init::shuttle_init_tests::"
48   ];
50   meta = with lib; {
51     description = "A cargo command for the shuttle platform";
52     mainProgram = "cargo-shuttle";
53     homepage = "https://shuttle.rs";
54     changelog = "https://github.com/shuttle-hq/shuttle/releases/tag/${src.rev}";
55     license = licenses.asl20;
56     maintainers = with maintainers; [ figsoda ];
57   };