tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
mmj2: init at 2.5.2-unstable-2023-06-27
Benjamin Levy
1 year ago
e7c21191
50d473d6
+65
2 changed files
expand all
collapse all
unified
split
maintainers
maintainer-list.nix
pkgs
by-name
mm
mmj2
package.nix
+5
maintainers/maintainer-list.nix
···
9593
9593
githubId = 88038050;
9594
9594
name = "Souvik Sen";
9595
9595
};
9596
9596
+
io12 = {
9597
9597
+
github = "io12";
9598
9598
+
githubId = 7348004;
9599
9599
+
name = "Benjamin Levy";
9600
9600
+
};
9596
9601
iogamaster = {
9597
9602
email = "iogamastercode+nixpkgs@gmail.com";
9598
9603
name = "IogaMaster";
+60
pkgs/by-name/mm/mmj2/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
maven,
4
4
+
fetchFromGitHub,
5
5
+
jre,
6
6
+
makeWrapper,
7
7
+
}:
8
8
+
9
9
+
let
10
10
+
lastVersion = "2.5.2";
11
11
+
12
12
+
in
13
13
+
maven.buildMavenPackage {
14
14
+
pname = "mmj2";
15
15
+
16
16
+
# The latest stable version is from 2017 and doesn't include the mmj2jar/mmj2
17
17
+
# wrapper script, so use the unstable one for now
18
18
+
version = "${lastVersion}-unstable-2023-06-27";
19
19
+
20
20
+
src = fetchFromGitHub {
21
21
+
owner = "digama0";
22
22
+
repo = "mmj2";
23
23
+
fetchSubmodules = true;
24
24
+
rev = "1cd95c1fe4435899c8575644fccb412dd77d79e4";
25
25
+
hash = "sha256-WYBrLY04+bJGzjRMs8LgHnI6lMRhQKyz15DIoLeiE2s=";
26
26
+
};
27
27
+
28
28
+
mvnHash = "sha256-fu/q6CTvSllrfgnKNX6aIuPO65H/q0IPCHFuWmOFOvM=";
29
29
+
30
30
+
nativeBuildInputs = [ makeWrapper ];
31
31
+
32
32
+
installPhase = ''
33
33
+
runHook preInstall
34
34
+
35
35
+
local jar=$out/share/$pname/$pname.jar
36
36
+
local bin=$out/bin/$pname
37
37
+
install -Dm644 target/$pname-${lastVersion}-SNAPSHOT-jar-with-dependencies.jar $jar
38
38
+
install -Dm744 mmj2jar/$pname $bin
39
39
+
wrapProgram $bin \
40
40
+
--set MMJ2_JAR $jar \
41
41
+
--set JAVA ${jre}/bin/java
42
42
+
43
43
+
runHook postInstall
44
44
+
'';
45
45
+
46
46
+
meta = with lib; {
47
47
+
description = "GUI Proof Assistant for the Metamath project";
48
48
+
longDescription = ''
49
49
+
mmj2 is a proof assistant for the Metamath language. Metamath is a
50
50
+
language that lets you express mathematical axioms and theorems. The proof
51
51
+
assistant includes a GUI for creating proofs, proof verification tools,
52
52
+
and grammatical/syntax analysis.
53
53
+
'';
54
54
+
homepage = "https://github.com/digama0/mmj2";
55
55
+
license = licenses.gpl2Plus;
56
56
+
maintainers = with maintainers; [ io12 ];
57
57
+
platforms = platforms.linux;
58
58
+
mainProgram = "mmj2";
59
59
+
};
60
60
+
}