nixpkgs-suyu/pkgs/development/libraries/tachyon/default.nix
Ryan Mulligan b92a9e1504 tachyon: 0.98.9 -> 0.99b2
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/tachyon/versions.

These checks were done:

- built on NixOS
- ran `/nix/store/xpwz7yb6jqisimg2rw0xn5zh8n8i89fb-tachyon-0.99b2/bin/tachyon help` got 0 exit code
- directory tree listing: https://gist.github.com/755515ff78d7dad0ef3e73cb3333c2d4
2018-03-27 22:09:13 -07:00

32 lines
1.1 KiB
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "tachyon-${version}";
version = "0.99b2";
src = fetchurl {
url = "http://jedi.ks.uiuc.edu/~johns/tachyon/files/${version}/${name}.tar.gz";
sha256 = "04m0bniszyg7ryknj8laj3rl5sspacw5nr45x59j2swcsxmdvn1v";
};
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/;
};
}