nagiosPlugins.check_ssl_cert: 2.85.1 -> 2.86.0 (#379244)
[NixPkgs.git] / pkgs / by-name / ha / habitat / package.nix
blobcfc5e8361f32969380b3c505d4bc9e8a1bd9fed2
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   protobuf,
7   libsodium,
8   openssl,
9   xz,
10   zeromq,
11   cacert,
14 rustPlatform.buildRustPackage rec {
15   pname = "habitat";
16   version = "1.6.848";
18   src = fetchFromGitHub {
19     owner = "habitat-sh";
20     repo = "habitat";
21     rev = version;
22     hash = "sha256-oK9ZzENwpEq6W1qnhSgkr7Rhy7Fxt/BS4U5nxecyPu8=";
23   };
25   cargoLock = {
26     lockFile = ./Cargo.lock;
27     outputHashes = {
28       "clap-2.33.1" = "sha256-ixyNr91VNB2ce2cIr0CdPmvKYRlckhKLeaSbqxouIAY=";
29       "configopt-0.1.0" = "sha256-76MeSoRD796ZzBqX3CoDJnunekVo2XfctpxrpspxmAU=";
30       "rants-0.6.0" = "sha256-B8uDoiqddCki3j7aC8kilEcmJjvB4ICjZjjTun2UEkY=";
31       "retry-1.0.0" = "sha256-ZaHnzOCelV4V0+MTIbH3DXxdz8QZVgcMq2YeV0S6X6o=";
32       "structopt-0.3.15" = "sha256-0vIX7J7VktKytT3ZnOm45qPRMHDkdJg20eU6pZBIH+Q=";
33       "zmq-0.9.2" = "sha256-bsDCPYLb9hUr6htPQ7rSoasKAqoWBx5FiEY1gOOtdJQ=";
34     };
35   };
37   nativeBuildInputs = [
38     pkg-config
39     protobuf
40   ];
42   buildInputs = [
43     libsodium
44     openssl
45     xz
46     zeromq
47   ];
49   cargoBuildFlags = [
50     "-p"
51     "hab"
52   ];
53   cargoTestFlags = cargoBuildFlags;
55   env = {
56     OPENSSL_NO_VENDOR = true;
57     SODIUM_USE_PKG_CONFIG = true;
58     SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
59   };
61   meta = with lib; {
62     description = "Application automation framework";
63     homepage = "https://www.habitat.sh";
64     changelog = "https://github.com/habitat-sh/habitat/blob/${src.rev}/CHANGELOG.md";
65     license = licenses.asl20;
66     maintainers = with maintainers; [
67       rushmorem
68       qjoly
69     ];
70     mainProgram = "hab";
71     platforms = [ "x86_64-linux" ];
72   };