summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorKonstantin Heil <konst.heil@arcor.de>2016-06-30 18:05:50 +0200
committerKonstantin Heil <konst.heil@arcor.de>2016-06-30 21:04:41 +0200
commitb92c4297993cd09bdb9ea2bf50b01713ddc48d55 (patch)
treea0b52686319142b70f478a42e8ed9e1eae3585c2 /pkgs
parent29bf0796a70d41efc6915057f08ae241a5c6a520 (diff)
downloadnixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.tar
nixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.tar.gz
nixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.tar.bz2
nixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.tar.lz
nixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.tar.xz
nixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.tar.zst
nixlib-b92c4297993cd09bdb9ea2bf50b01713ddc48d55.zip
LiE: init at 2.2.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/math/LiE/default.nix47
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/LiE/default.nix b/pkgs/applications/science/math/LiE/default.nix
new file mode 100644
index 000000000000..233f44b44cc8
--- /dev/null
+++ b/pkgs/applications/science/math/LiE/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchurl
+, bison, readline }:
+
+stdenv.mkDerivation rec {
+  version = "2.2.2";
+     # The current version of LiE is 2.2.2, which is more or less unchanged
+     # since about the year 2000. Minor bugfixes do get applied now and then.
+  name = "LiE-${version}";
+
+  meta = {
+    description = "A Computer algebra package for Lie group computations";
+    homepage = "http://wwwmathlabo.univ-poitiers.fr/~maavl/LiE/";
+    license = stdenv.lib.licenses.lgpl3; # see the website
+
+    longDescription = ''
+      LiE is a computer algebra system that is specialised in computations
+      involving (reductive) Lie groups and their representations. It is
+      publically available for free in source code. For a description of its
+      characteristics, we refer to the following sources of information.
+    ''; # take from the website
+
+    platforms = stdenv.lib.platforms.unix;
+    maintainers = [ ]; # this package is probably not going to change anyway
+  };
+
+  src = fetchurl {
+    url = "http://wwwmathlabo.univ-poitiers.fr/~maavl/LiE/conLiE.tar.gz";
+    sha256 = "07lbj75qqr4pq1j1qz8fyfnmrz1gnk92lnsshxycfavxl5zzdmn4";
+  };
+
+  buildInputs = [ bison readline ];
+
+  patchPhase = ''
+    substituteInPlace make_lie \
+      --replace \`/bin/pwd\` $out
+  '';
+
+  installPhase = ''
+    mkdir -vp $out/bin
+
+    cp -v Lie.exe $out
+    cp -v lie $out/bin
+
+    cp -v LEARN LEARN.ind $out
+    cp -v INFO.ind INFO.[0-4] $out
+  '';
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 90188ff100e1..0cb3f7d341e4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -16122,6 +16122,8 @@ in
 
   openspecfun = callPackage ../development/libraries/science/math/openspecfun {};
 
+  LiE = callPackage ../applications/science/math/LiE { };
+
   magma = callPackage ../development/libraries/science/math/magma { };
 
   mathematica = callPackage ../applications/science/math/mathematica { };