summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathan van Doorn <nvd1234@gmail.com>2018-12-08 23:11:43 +0000
committerNathan van Doorn <nvd1234@gmail.com>2018-12-09 10:18:25 +0000
commit395b69a6a0cb0421198ba1ab992ced1b88dfd479 (patch)
tree6f9a73ad3f866f72e6af9eb338a7d7923a15ddf8
parentbb962eb2a2d039cb2430d0ffda51ae6a4b5467f2 (diff)
downloadnixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.tar
nixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.tar.gz
nixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.tar.bz2
nixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.tar.lz
nixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.tar.xz
nixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.tar.zst
nixpkgs-395b69a6a0cb0421198ba1ab992ced1b88dfd479.zip
metamath: init at 0.167
-rw-r--r--maintainers/maintainer-list.nix5
-rw-r--r--pkgs/development/interpreters/metamath/default.nix34
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 41 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 1c8ee9ff8e1..93f035447a3 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -4278,6 +4278,11 @@
     github = "talyz";
     name = "Kim Lindberger";
   };
+  taneb = {
+    email = "nvd1234@gmail.com";
+    github = "Taneb";
+    name = "Nathan van Doorn";
+  };
   tari = {
     email = "peter@taricorp.net";
     github = "tari";
diff --git a/pkgs/development/interpreters/metamath/default.nix b/pkgs/development/interpreters/metamath/default.nix
new file mode 100644
index 00000000000..198ee2acb50
--- /dev/null
+++ b/pkgs/development/interpreters/metamath/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  name = "metamath-${version}";
+  version = "0.167";
+
+  buildInputs = [ autoreconfHook ];
+
+  # This points to my own repository because there is no official repository
+  # for metamath; there's a download location but it gets updated in place with
+  # no permanent link. See discussion at
+  # https://groups.google.com/forum/#!topic/metamath/N4WEWQQVUfY
+  src = fetchFromGitHub {
+    owner = "Taneb";
+    repo = "metamath";
+    rev = "579166a649c5d9ae0cdc641185e68219d2812f24";
+    sha256 = "0ly7qv3gajlaf283fsy9ak41r09sh49ygzj0s9yxyjfli6rgxdby";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Interpreter for the metamath proof language";
+    longDescription = ''
+      The metamath program is an ASCII-based ANSI C program with a command-line
+      interface. It was used (along with mmj2) to build and verify the proofs
+      in the Metamath Proof Explorer, and it generated its web pages. The *.mm
+      ASCII databases (set.mm and others) are also included in this derivation.
+    '';
+    homepage = http://us.metamath.org;
+    downloadPage = "http://us.metamath.org/#downloads";
+    license = licenses.gpl2;
+    maintainers = [ maintainers.taneb ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a36113b642d..159b82b746c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7779,6 +7779,8 @@ in
 
   mesos-dns = callPackage ../servers/mesos-dns { };
 
+  metamath = callPackage ../development/interpreters/metamath { };
+
   mujs = callPackage ../development/interpreters/mujs { };
 
   nix-exec = callPackage ../development/interpreters/nix-exec {