11 stdenv.mkDerivation rec {
16 url = "https://github.com/jepsen-io/maelstrom/releases/download/v${version}/maelstrom.tar.bz2";
17 hash = "sha256-ISS2qma139Jz9eDxLJvULkqDZeu1vyx9ot4uO0LIVho=";
26 # see https://github.com/jepsen-io/maelstrom/blob/b91beef83ee40add17dfe0baf2df272869e144cf/pkg/maelstrom
27 makeWrapper ${jdk}/bin/java $out/bin/maelstrom \
28 --add-flags -Djava.awt.headless=true \
29 --add-flags "-jar $out/lib/maelstrom.jar" \
30 --set PATH ${lib.makeBinPath runtimeDependencies}
39 runtimeDependencies = [
48 description = "Workbench for writing toy implementations of distributed systems";
49 homepage = "https://github.com/jepsen-io/maelstrom";
50 changelog = "https://github.com/jepsen-io/maelstrom/releases/tag/${version}";
51 mainProgram = "maelstrom";
52 sourceProvenance = [ sourceTypes.binaryBytecode ];
53 license = licenses.epl10;
54 maintainers = [ maintainers.emilioziniades ];
55 platforms = platforms.linux ++ platforms.darwin;