1 { lib, fetchurl, stdenvNoCC, makeWrapper, jre }:
3 stdenvNoCC.mkDerivation rec {
8 url = "https://github.com/TheThirdOne/rars/releases/download/v${version}/rars1_6.jar";
9 hash = "sha256-eA9zDrRXsbpgnpaKzMLIt32PksPZ2/MMx/2zz7FOjCQ=";
14 nativeBuildInputs = [ makeWrapper ];
18 export JAR=$out/share/java/${pname}/${pname}.jar
20 makeWrapper ${jre}/bin/java $out/bin/${pname} \
21 --add-flags "-jar $JAR"
26 description = "RISC-V Assembler and Runtime Simulator";
28 homepage = "https://github.com/TheThirdOne/rars";
29 sourceProvenance = with sourceTypes; [ binaryBytecode ];
30 license = licenses.mit;
31 maintainers = with maintainers; [ athas ];
32 platforms = platforms.all;