about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/altcoins/jormungandr/default.nix
blob: d58e05184b6368edfc0e89d870e54746e737114d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv
, fetchgit
, rustPlatform
, openssl
, pkgconfig
, protobuf
, rustup
}:

rustPlatform.buildRustPackage rec {
  pname = "jormungandr";
  version = "0.3.1";

  src = fetchgit {
    url = "https://github.com/input-output-hk/${pname}";
    rev = "v${version}";
    sha256 = "0ys8sw73c7binxnl79dqi7sxva62bgifbhgyzvvjvmjjdxgq4kfp";
    fetchSubmodules = true;
  };

  cargoSha256 = "0fphjzz78ym15qbka01idnq6vkyf4asrnhrhvxngwc3bifmnj937";

  nativeBuildInputs = [ pkgconfig protobuf rustup ];
  buildInputs = [ openssl ];

  PROTOC = "${protobuf}/bin/protoc";

  # Disabling integration tests
  doCheck = false;

  meta = with stdenv.lib; {
    description = "An aspiring blockchain node";
    homepage = "https://input-output-hk.github.io/jormungandr/";
    license = licenses.mit;
    maintainers = [ maintainers.mmahut ];
    platforms = platforms.all;
  };
}