mmj2: init at 2.5.2-unstable-2023-06-27 (#265991)

authored by Arne Keller and committed by GitHub d5465afa ef8cfa47

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