btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / ma / mathemagix / package.nix
blob76873464d62918fddae89c977f6f9ce5b987cad4
2   stdenv,
3   lib,
4   fetchsvn,
5   readline,
6   ncurses,
7   bison,
8   libtool,
9   gmp,
10   mpfr,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "mathemagix";
15   version = "11126";
17   src = fetchsvn {
18     url = "https://subversion.renater.fr/anonscm/svn/mmx/";
19     rev = finalAttrs.version;
20     hash = "sha256-AFnYd5oFg/wgaHPjfZmqXNljEpoFW4h6f3UG+KZauEs=";
21   };
23   strictDeps = true;
25   buildInputs = [
26     gmp
27     libtool
28     mpfr
29     ncurses
30     readline
31   ];
33   nativeBuildInputs = [
34     bison
35   ];
37   preConfigure = ''
38     export HOME="$PWD"
39   '';
41   meta = {
42     description = "Free computer algebra and analysis system consisting of a high level language with a compiler and a series of mathematical libraries";
43     homepage = "http://www.mathemagix.org/";
44     license = lib.licenses.gpl3Only;
45     maintainers = with lib.maintainers; [ drupol ];
46     platforms = lib.platforms.linux;
47   };