2024-08-17 22:29:43 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre, nixosTests }:
|
2020-05-24 18:38:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ergo";
|
2024-08-04 01:14:16 +00:00
|
|
|
version = "5.0.22";
|
2020-05-24 18:38:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
|
2024-08-04 01:14:16 +00:00
|
|
|
sha256 = "sha256-fuea76l6kIjk9n/LlktZmJ1B8wiwSfEeHUkTr+I1a2c=";
|
2020-05-24 18:38:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
|
|
|
|
'';
|
|
|
|
|
2024-08-17 22:29:43 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) ergo; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-24 18:38:54 +00:00
|
|
|
description = "Open protocol that implements modern scientific ideas in the blockchain area";
|
2020-05-26 15:16:47 +00:00
|
|
|
homepage = "https://ergoplatform.org/en/";
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-05-26 15:16:47 +00:00
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.all;
|
2020-05-24 18:38:54 +00:00
|
|
|
maintainers = with maintainers; [ mmahut ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "ergo";
|
2020-05-24 18:38:54 +00:00
|
|
|
};
|
|
|
|
}
|