about summary refs log tree commit diff
path: root/pkgs/by-name/ma/mathemagix/package.nix
blob: 5735bf8d0d64424a637e8565458d33b24ff03ad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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;
  };
}