From 0d08c34be20fa662f773f2baf9bee08204b56538 Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Thu, 12 Mar 2020 14:35:18 +0100 Subject: [PATCH 1/2] quorum: init at 2.5.0 --- pkgs/applications/blockchains/quorum.nix | 34 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/applications/blockchains/quorum.nix diff --git a/pkgs/applications/blockchains/quorum.nix b/pkgs/applications/blockchains/quorum.nix new file mode 100644 index 000000000000..86bd3b11a17f --- /dev/null +++ b/pkgs/applications/blockchains/quorum.nix @@ -0,0 +1,34 @@ +{ lib, fetchFromGitHub, buildGoPackage, git, which }: + +buildGoPackage rec { + pname = "quorum"; + version = "2.5.0"; + + goPackagePath = "github.com/jpmorganchase/quorum"; + + src = fetchFromGitHub { + owner = "jpmorganchase"; + repo = pname; + rev = "v${version}"; + sha256 = "0xfdaqp9bj5dkw12gy19lxj73zh7w80j051xclsvnd41sfah86ll"; + }; + + buildInputs = [ git which ]; + + buildPhase = '' + cd "go/src/$goPackagePath" + make geth bootnode swarm + ''; + + installPhase = '' + mkdir -pv $bin/bin + cp -v build/bin/geth build/bin/bootnode build/bin/swarm $bin/bin + ''; + + meta = { + description = "A permissioned implementation of Ethereum supporting data privacy"; + homepage = "https://www.goquorum.com/"; + license = lib.licenses.lgpl3; + maintainers = with lib.maintainers; [ mmahut ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74ab773c2393..f86988b89b0d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22931,6 +22931,8 @@ in particl-core = callPackage ../applications/blockchains/particl/particl-core.nix { miniupnpc = miniupnpc_2; }; + quorum = callPackage ../applications/blockchains/quorum.nix { }; + ### GAMES _2048-in-terminal = callPackage ../games/2048-in-terminal { }; From 0d6e2349f64c9a8627a2be2faa44436bcf6ae034 Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Thu, 12 Mar 2020 15:18:33 +0100 Subject: [PATCH 2/2] quorum: remove aarch64-linux --- pkgs/applications/blockchains/quorum.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/blockchains/quorum.nix b/pkgs/applications/blockchains/quorum.nix index 86bd3b11a17f..49bc0be108ff 100644 --- a/pkgs/applications/blockchains/quorum.nix +++ b/pkgs/applications/blockchains/quorum.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, buildGoPackage, git, which }: +{ stdenv, fetchFromGitHub, buildGoPackage, git, which }: buildGoPackage rec { pname = "quorum"; @@ -25,10 +25,11 @@ buildGoPackage rec { cp -v build/bin/geth build/bin/bootnode build/bin/swarm $bin/bin ''; - meta = { + meta = with stdenv.lib; { description = "A permissioned implementation of Ethereum supporting data privacy"; homepage = "https://www.goquorum.com/"; - license = lib.licenses.lgpl3; - maintainers = with lib.maintainers; [ mmahut ]; + license = licenses.lgpl3; + maintainers = with maintainers; [ mmahut ]; + platforms = subtractLists ["aarch64-linux"] platforms.linux; }; }