tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
plm: fix old link & deprecate phases
Felix Buehler
4 years ago
d62ab966
5f0ab755
+10
-8
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
programming
plm
default.nix
+10
-8
pkgs/applications/science/programming/plm/default.nix
···
1
-
{lib, stdenv, fetchurl, makeWrapper, jre, gcc, valgrind}:
2
# gcc and valgrind are not strict dependencies, they could be made
3
# optional. They are here because plm can only help you learn C if you
4
# have them installed.
5
stdenv.mkDerivation rec {
6
-
major = "2";
7
-
minor = "5";
8
-
version = "${major}-${minor}";
9
pname = "plm";
0
10
11
src = fetchurl {
12
-
url = "http://webloria.loria.fr/~quinson/Teaching/PLM/plm-${major}_${minor}.jar";
13
-
sha256 = "0m17cxa3nxi2cbswqvlfzp0mlfi3wrkw8ry2xhkxy6aqzm2mlgcc";
14
name = "${pname}-${version}.jar";
15
};
16
17
nativeBuildInputs = [ makeWrapper ];
18
buildInputs = [ jre gcc valgrind ];
19
20
-
phases = [ "installPhase" ];
21
22
installPhase = ''
0
0
23
mkdir -p "$prefix/bin"
24
25
makeWrapper ${jre}/bin/java $out/bin/plm \
26
--add-flags "-jar $src" \
27
--prefix PATH : "$PATH"
0
0
28
'';
29
30
meta = with lib; {
31
description = "Free cross-platform programming exerciser";
0
32
license = licenses.gpl3;
33
maintainers = [ ];
34
platforms = lib.platforms.all;
35
-
broken = true;
36
};
37
}
···
1
+
{ lib, stdenv, fetchurl, makeWrapper, jre, gcc, valgrind }:
2
# gcc and valgrind are not strict dependencies, they could be made
3
# optional. They are here because plm can only help you learn C if you
4
# have them installed.
5
stdenv.mkDerivation rec {
0
0
0
6
pname = "plm";
7
+
version = "2.9.3";
8
9
src = fetchurl {
10
+
url = "https://github.com/BuggleInc/PLM/releases/download/v${version}/plm-${version}.jar";
11
+
sha256 = "0i9ghx9pm3kpn9x9n1hl10zdr36v5mv3drx8lvhsqwhlsvz42p5i";
12
name = "${pname}-${version}.jar";
13
};
14
15
nativeBuildInputs = [ makeWrapper ];
16
buildInputs = [ jre gcc valgrind ];
17
18
+
dontUnpack = true;
19
20
installPhase = ''
21
+
runHook preInstall
22
+
23
mkdir -p "$prefix/bin"
24
25
makeWrapper ${jre}/bin/java $out/bin/plm \
26
--add-flags "-jar $src" \
27
--prefix PATH : "$PATH"
28
+
29
+
runHook postInstall
30
'';
31
32
meta = with lib; {
33
description = "Free cross-platform programming exerciser";
34
+
homepage = "http://people.irisa.fr/Martin.Quinson/Teaching/PLM/";
35
license = licenses.gpl3;
36
maintainers = [ ];
37
platforms = lib.platforms.all;
0
38
};
39
}