forked from mirrors/nixpkgs
39 lines
864 B
Nix
39 lines
864 B
Nix
{ stdenv
|
|
, fetchgit
|
|
, rustPlatform
|
|
, openssl
|
|
, pkgconfig
|
|
, protobuf
|
|
, rustup
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "jormungandr";
|
|
version = "0.3.2";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/input-output-hk/${pname}";
|
|
rev = "v${version}";
|
|
sha256 = "0zlnl6a3i7x4basc4w31dwqbdign96kvd7j0vqk2v818ifjvpavd";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cargoSha256 = "13zcbhhdf4xakp37r920xzcb0prdk58jlph9f3hwlp8npmcws52p";
|
|
|
|
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;
|
|
};
|
|
}
|