From 63ca0c72717e58c0fb787f7ce6091e5d83154b97 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 22 Apr 2024 10:38:10 +0200 Subject: [PATCH] mathemagix: init at 11126 --- pkgs/by-name/ma/mathemagix/package.nix | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/ma/mathemagix/package.nix diff --git a/pkgs/by-name/ma/mathemagix/package.nix b/pkgs/by-name/ma/mathemagix/package.nix new file mode 100644 index 000000000000..5735bf8d0d64 --- /dev/null +++ b/pkgs/by-name/ma/mathemagix/package.nix @@ -0,0 +1,45 @@ +{ + stdenv, + lib, + fetchsvn, + readline, + ncurses, + bison, + libtool, + gmp, + mpfr, +}: + +stdenv.mkDerivation { + pname = "mathemagix"; + version = "11126"; + + src = fetchsvn { + url = "https://subversion.renater.fr/anonscm/svn/mmx/"; + rev = 11126; + hash = "sha256-AFnYd5oFg/wgaHPjfZmqXNljEpoFW4h6f3UG+KZauEs="; + }; + + nativeBuildInputs = [ + readline + ncurses + bison + libtool + gmp + mpfr + ]; + + preConfigure = '' + export HOME="$PWD" + ''; + + configureFlags = [ "--prefix=${placeholder "out"}" ]; + + meta = { + description = "Mathemagix is a free computer algebra and analysis system. It consists of a high level language with a compiler and a series of mathematical libraries, some of which are written in C++."; + homepage = "http://www.mathemagix.org/"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ drupol ]; + platforms = lib.platforms.linux; + }; +}