symmetrica: init at 2.0

This commit is contained in:
Michael Raskin 2016-10-10 18:43:16 +02:00
parent c450d7b0a8
commit 411d5742ca
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "symmetrica-${version}";
version = "2.0";
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
src = fetchurl {
url = "http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/SYM2_0_tar.gz";
sha256 = "1qhfrbd5ybb0sinl9pad64rscr08qvlfzrzmi4p4hk61xn6phlmz";
name = "symmetrica-2.0.tar.gz";
};
buildInputs = [];
sourceRoot = ".";
installPhase = ''
mkdir -p "$out"/{lib,share/doc/symmetrica,include/symmetrica}
ar crs libsymmetrica.a *.o
ranlib libsymmetrica.a
cp libsymmetrica.a "$out/lib"
cp *.h "$out/include/symmetrica"
cp README *.doc "$out/share/doc/symmetrica"
'';
meta = {
inherit version;
description = ''A collection of routines for representation theory and combinatorics'';
license = stdenv.lib.licenses.publicDomain;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
homepage = "http://www.symmetrica.de/";
};
}

View File

@ -0,0 +1,32 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "tachyon-${version}";
version = "0.98.9";
src = fetchurl {
url = "http://jedi.ks.uiuc.edu/~johns/tachyon/files/${version}/${name}.tar.gz";
sha256 = "1ms0xr4ibrzz291ibm265lyjrdjrmhfrx0a70hwykhsdxn6jk8y6";
};
buildInputs = [];
preBuild = "cd unix";
arch = if stdenv.system == "x86_64-linux" then "linux-64-thr" else
if stdenv.system == "i686-linux" then "linux-thr" else
throw "Don't know what arch to select for tachyon build";
makeFlags = "${arch}";
installPhase = ''
cd ../compile/${arch}
mkdir -p "$out"/{bin,lib,include,share/doc/tachyon,share/tachyon}
cp tachyon "$out"/bin
cp libtachyon.* "$out/lib"
cd ../..
cp Changes Copyright README "$out/share/doc/tachyon"
cp -r scenes "$out/share/tachyon/scenes"
'';
meta = {
inherit version;
description = ''A Parallel / Multiprocessor Ray Tracing System'';
license = stdenv.lib.licenses.bsd3;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
homepage = "http://jedi.ks.uiuc.edu/~johns/tachyon/";
};
}

View File

@ -9208,6 +9208,8 @@ in
t1lib = callPackage ../development/libraries/t1lib { };
tachyon = callPackage ../development/libraries/tachyon {};
taglib = callPackage ../development/libraries/taglib { };
taglib_1_9 = callPackage ../development/libraries/taglib/1.9.nix { };
@ -16380,6 +16382,8 @@ in
superlu = callPackage ../development/libraries/science/math/superlu {};
symmetrica = callPackage ../applications/science/math/symmetrica {};
ipopt = callPackage ../development/libraries/science/math/ipopt { openblas = openblasCompat; };
gmsh = callPackage ../applications/science/math/gmsh { };