nixpkgs/pkgs/applications/blockchains/besu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
882 B
Nix
Raw Normal View History

2022-01-19 14:22:53 +00:00
{ lib, stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "besu";
2024-02-22 04:19:00 +00:00
version = "24.1.2";
2022-01-19 14:22:53 +00:00
src = fetchurl {
url = "https://hyperledger.jfrog.io/artifactory/${pname}-binaries/${pname}/${version}/${pname}-${version}.tar.gz";
2024-02-22 04:19:00 +00:00
sha256 = "sha256-CC24z0+2dSeqDddX5dJUs7SX9QJ8Iyh/nAp0pqdDvwg=";
2022-01-19 14:22:53 +00:00
};
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;
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2022-01-19 14:22:53 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ mmahut ];
};
}