3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/blockchains/ergo/default.nix

28 lines
745 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre }:
2020-05-24 19:38:54 +01:00
stdenv.mkDerivation rec {
pname = "ergo";
2021-07-20 03:34:38 +01:00
version = "4.0.13";
2020-05-24 19:38:54 +01:00
src = fetchurl {
url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
2021-07-20 03:34:38 +01:00
sha256 = "sha256-HNpyUD2Tep2XnY3lr5a3ec+NmJtt0VvJx6ujVvSugXo=";
2020-05-24 19:38:54 +01:00
};
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = ''
makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
'';
meta = with lib; {
2020-05-24 19:38:54 +01:00
description = "Open protocol that implements modern scientific ideas in the blockchain area";
2020-05-26 16:16:47 +01:00
homepage = "https://ergoplatform.org/en/";
license = licenses.cc0;
platforms = platforms.all;
2020-05-24 19:38:54 +01:00
maintainers = with maintainers; [ mmahut ];
};
}