From 5bda6a3132e5787e151b54710309c9688d2abf6f Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Sun, 28 Jul 2019 18:49:51 +0200 Subject: [PATCH] jormungandr: init at 0.3.1 --- .../altcoins/jormungandr/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/altcoins/jormungandr/default.nix diff --git a/pkgs/applications/altcoins/jormungandr/default.nix b/pkgs/applications/altcoins/jormungandr/default.nix new file mode 100644 index 000000000000..d58e05184b63 --- /dev/null +++ b/pkgs/applications/altcoins/jormungandr/default.nix @@ -0,0 +1,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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b6e7251c7cbe..aa4bee1cd8b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18799,6 +18799,8 @@ in josm = callPackage ../applications/misc/josm { }; + jormungandr = callPackage ../applications/altcoins/jormungandr { }; + jbrout = callPackage ../applications/graphics/jbrout { }; jwm = callPackage ../applications/window-managers/jwm { };