1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/blockchains/ergo/default.nix

28 lines
747 B
Nix
Raw Normal View History

2020-05-24 19:38:54 +01:00
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
pname = "ergo";
2020-10-29 14:19:08 +00:00
version = "3.3.5";
2020-05-24 19:38:54 +01:00
src = fetchurl {
url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
2020-10-29 14:19:08 +00:00
sha256 = "0bxzpwwb42bppqli3zggx3lah7g6kwmy6k6k6dinypj6x0bafqcg";
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 stdenv.lib; {
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 ];
};
}