tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
New package PLM: Programmer's Learning Machine
Damien Cassou
11 years ago
e7a161d4
96d6344b
+39
2 changed files
expand all
collapse all
unified
split
pkgs
applications
science
programming
plm
default.nix
top-level
all-packages.nix
+36
pkgs/applications/science/programming/plm/default.nix
···
1
1
+
{stdenv, fetchurl, makeWrapper, jre, gcc, valgrind}:
2
2
+
# gcc and valgrind are not strict dependencies, they could be made
3
3
+
# optional. They are here because plm can only help you learn C if you
4
4
+
# have them installed.
5
5
+
stdenv.mkDerivation rec {
6
6
+
major = "2";
7
7
+
minor = "5";
8
8
+
version = "${major}-${minor}";
9
9
+
name = "plm-${version}";
10
10
+
11
11
+
src = fetchurl {
12
12
+
url = "http://webloria.loria.fr/~quinson/Teaching/PLM/plm-${major}_${minor}.jar";
13
13
+
sha256 = "0m17cxa3nxi2cbswqvlfzp0mlfi3wrkw8ry2xhkxy6aqzm2mlgcc";
14
14
+
name = "${name}.jar";
15
15
+
};
16
16
+
17
17
+
buildInputs = [ makeWrapper jre gcc valgrind ];
18
18
+
19
19
+
phases = [ "installPhase" ];
20
20
+
21
21
+
installPhase = ''
22
22
+
mkdir -p "$prefix/bin"
23
23
+
24
24
+
makeWrapper ${jre}/bin/java $out/bin/plm \
25
25
+
--add-flags "-jar $src" \
26
26
+
--prefix PATH : "$PATH"
27
27
+
'';
28
28
+
29
29
+
meta = with stdenv.lib; {
30
30
+
description = "Free cross-platform programming exerciser";
31
31
+
Homepage = http://webloria.loria.fr/~quinson/Teaching/PLM/;
32
32
+
license = licenses.gpl3;
33
33
+
maintainers = [ maintainers.DamienCassou ];
34
34
+
platforms = stdenv.lib.platforms.all;
35
35
+
};
36
36
+
}
+3
pkgs/top-level/all-packages.nix
···
12637
12637
cmake = cmakeCurses;
12638
12638
});
12639
12639
12640
12640
+
### SCIENCE/PROGRAMMING
12641
12641
+
12642
12642
+
plm = callPackage ../applications/science/programming/plm { };
12640
12643
12641
12644
### SCIENCE/LOGIC
12642
12645