nixpkgs-suyu/pkgs/applications/blockchains/ergo/default.nix

28 lines
747 B
Nix
Raw Normal View History

2020-05-24 20:38:54 +02:00
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "ergo";
2020-11-11 05:23:45 +01:00
version = "3.3.6";
2020-05-24 20:38:54 +02:00
src = fetchurl {
url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
2020-11-11 05:23:45 +01:00
sha256 = "1zi559ixjxxsrpvvjbxa1d0g96px3h9amjvy149sfhp7b8w5hhk3";
2020-05-24 20:38:54 +02:00
};
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = ''
makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
'';
meta = with stdenv.lib; {
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 ];
};
}