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