1 { lib, stdenv, fetchurl, makeWrapper, jre, nixosTests }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
9 sha256 = "sha256-fuea76l6kIjk9n/LlktZmJ1B8wiwSfEeHUkTr+I1a2c=";
12 nativeBuildInputs = [ makeWrapper ];
17 makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
20 passthru.tests = { inherit (nixosTests) ergo; };
23 description = "Open protocol that implements modern scientific ideas in the blockchain area";
24 homepage = "https://ergoplatform.org/en/";
25 sourceProvenance = with sourceTypes; [ binaryBytecode ];
26 license = licenses.cc0;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ mmahut ];