From b52c3e742eb31f2c915fdcc9ef75d366cc37ee0f Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Wed, 19 Jan 2022 15:22:53 +0100 Subject: [PATCH] besu: init at 21.10.8 --- .../applications/blockchains/besu/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/blockchains/besu/default.nix diff --git a/pkgs/applications/blockchains/besu/default.nix b/pkgs/applications/blockchains/besu/default.nix new file mode 100644 index 000000000000..550d65051e3e --- /dev/null +++ b/pkgs/applications/blockchains/besu/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl, makeWrapper, jre }: + +stdenv.mkDerivation rec { + pname = "besu"; + version = "21.10.8"; + + src = fetchurl { + url = "https://hyperledger.jfrog.io/artifactory/${pname}-binaries/${pname}/${version}/${pname}-${version}.tar.gz"; + sha256 = "sha256-0yXi42vDinB6nuv5IGj1AhYGqMa2Rku0tNWQCO+AFPw="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin + cp -r bin $out/ + mkdir -p $out/lib + cp -r lib $out/ + wrapProgram $out/bin/${pname} --set JAVA_HOME "${jre}" + ''; + + meta = with lib; { + description = "An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client"; + homepage = "https://www.hyperledger.org/projects/besu"; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ mmahut ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 884890c46ac9..22e8e47bfefd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29788,6 +29788,8 @@ with pkgs; clightning = callPackage ../applications/blockchains/clightning { }; + besu = callPackage ../applications/blockchains/besu { }; + bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc { boost = boost165; withGui = true;