mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
b3cb07e130
Darwin build fails from conflicts in libSystem: In file included from altdom.c:1: In file included from /private/var/folders/7t/4vz31njj37b8y_bg6z3t7tk00000gn/T/nix-build-LiE-2.2.2.drv-0/LiE/lie.h:34: In file included from /nix/store/9ll4m9yx854hr64fn1w9ra3qimm3pzdk-Libsystem-osx-10.9.5/include/string.h:176: /nix/store/9ll4m9yx854hr64fn1w9ra3qimm3pzdk-Libsystem-osx-10.9.5/include/strings.h:73:7: error: redefinition of 'index' as different kind of symbol char *index(const char *, int) __POSIX_C_DEPRECATED(200112L); ^ /private/var/folders/7t/4vz31njj37b8y_bg6z3t7tk00000gn/T/nix-build-LiE-2.2.2.drv-0/LiE/lie.h:6:14: note: previous definition is here typedef long index; ^ 1 error generated.
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{ 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.linux;
|
|
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* $out
|
|
cp -v INFO* $out
|
|
'';
|
|
}
|