2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre }:
|
2020-05-24 20:38:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ergo";
|
2021-10-29 13:39:23 +02:00
|
|
|
version = "4.0.15";
|
2020-05-24 20:38:54 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
|
2021-10-29 13:39:23 +02:00
|
|
|
sha256 = "sha256-4omuu/9EeywWDkk//4TTal/1siCe/4YMmEsIefBxsuY=";
|
2020-05-24 20:38:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-05-24 20:38:54 +02:00
|
|
|
description = "Open protocol that implements modern scientific ideas in the blockchain area";
|
2020-05-26 17:16:47 +02:00
|
|
|
homepage = "https://ergoplatform.org/en/";
|
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.all;
|
2020-05-24 20:38:54 +02:00
|
|
|
maintainers = with maintainers; [ mmahut ];
|
|
|
|
};
|
|
|
|
}
|