10 # gcc and valgrind are not strict dependencies, they could be made
11 # optional. They are here because plm can only help you learn C if you
12 # have them installed.
13 stdenv.mkDerivation rec {
18 url = "https://github.com/BuggleInc/PLM/releases/download/v${version}/plm-${version}.jar";
19 sha256 = "0i9ghx9pm3kpn9x9n1hl10zdr36v5mv3drx8lvhsqwhlsvz42p5i";
20 name = "${pname}-${version}.jar";
23 nativeBuildInputs = [ makeWrapper ];
35 mkdir -p "$prefix/bin"
37 makeWrapper ${jre}/bin/java $out/bin/plm \
38 --add-flags "-jar $src" \
39 --prefix PATH : "$PATH"
45 description = "Free cross-platform programming exerciser";
47 homepage = "http://people.irisa.fr/Martin.Quinson/Teaching/PLM/";
48 license = licenses.gpl3;
49 sourceProvenance = with sourceTypes; [ binaryBytecode ];
51 platforms = lib.platforms.all;