2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ergo";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.0.21";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-WtBsChSHnYbRBojxRUGdMnXlG+45hp4ZSd8GLx5n/88=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-29 06:06:01 +00:00
|
|
|
description = "Open protocol that implements modern scientific ideas in the blockchain area";
|
|
|
|
homepage = "https://ergoplatform.org/en/";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ mmahut ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ergo";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|