chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / applications / blockchains / ergo / default.nix
blobba24148ed51e4ed1c241173a07e927fb7ca2a5c6
1 { lib, stdenv, fetchurl, makeWrapper, jre, nixosTests }:
3 stdenv.mkDerivation rec {
4   pname = "ergo";
5   version = "5.0.22";
7   src = fetchurl {
8     url = "https://github.com/ergoplatform/ergo/releases/download/v${version}/ergo-${version}.jar";
9     sha256 = "sha256-fuea76l6kIjk9n/LlktZmJ1B8wiwSfEeHUkTr+I1a2c=";
10   };
12   nativeBuildInputs = [ makeWrapper ];
14   dontUnpack = true;
16   installPhase = ''
17     makeWrapper ${jre}/bin/java $out/bin/ergo --add-flags "-jar $src"
18   '';
20   passthru.tests = { inherit (nixosTests) ergo; };
22   meta = with lib; {
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 ];
29     mainProgram = "ergo";
30   };