1{
2 lib,
3 stdenv,
4 fetchurl,
5 bison,
6 readline,
7}:
8
9stdenv.mkDerivation {
10 version = "2.2.2";
11 # The current version of LiE is 2.2.2, which is more or less unchanged
12 # since about the year 2000. Minor bugfixes do get applied now and then.
13 pname = "lie";
14
15 meta = {
16 description = "Computer algebra package for Lie group computations";
17 mainProgram = "lie";
18 homepage = "http://wwwmathlabo.univ-poitiers.fr/~maavl/LiE/";
19 license = lib.licenses.lgpl3; # see the website
20
21 longDescription = ''
22 LiE is a computer algebra system that is specialised in computations
23 involving (reductive) Lie groups and their representations. It is
24 publicly available for free in source code. For a description of its
25 characteristics, we refer to the following sources of information.
26 ''; # take from the website
27
28 platforms = lib.platforms.linux;
29 maintainers = [ ]; # this package is probably not going to change anyway
30 };
31
32 src = fetchurl {
33 url = "http://wwwmathlabo.univ-poitiers.fr/~maavl/LiE/conLiE.tar.gz";
34 sha256 = "07lbj75qqr4pq1j1qz8fyfnmrz1gnk92lnsshxycfavxl5zzdmn4";
35 };
36
37 buildInputs = [
38 bison
39 readline
40 ];
41
42 patchPhase = ''
43 substituteInPlace make_lie \
44 --replace \`/bin/pwd\` $out
45 '';
46
47 installPhase = ''
48 mkdir -vp $out/bin
49
50 cp -v Lie.exe $out
51 cp -v lie $out/bin
52
53 cp -v LEARN* $out
54 cp -v INFO* $out
55 '';
56}