2016-10-10 17:43:16 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tachyon-${version}";
|
2018-03-28 06:09:13 +01:00
|
|
|
version = "0.99b2";
|
2016-10-10 17:43:16 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://jedi.ks.uiuc.edu/~johns/tachyon/files/${version}/${name}.tar.gz";
|
2018-03-28 06:09:13 +01:00
|
|
|
sha256 = "04m0bniszyg7ryknj8laj3rl5sspacw5nr45x59j2swcsxmdvn1v";
|
2016-10-10 17:43:16 +01:00
|
|
|
};
|
|
|
|
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;
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://jedi.ks.uiuc.edu/~johns/tachyon/;
|
2016-10-10 17:43:16 +01:00
|
|
|
};
|
|
|
|
}
|