mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
31 lines
882 B
Nix
31 lines
882 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "besu";
|
|
version = "23.4.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://hyperledger.jfrog.io/artifactory/${pname}-binaries/${pname}/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-vUdtI1tv4fI2pivHCfQch962i3LEe7W1jla52Sg68sQ=";
|
|
};
|
|
|
|
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 ];
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ mmahut ];
|
|
};
|
|
}
|