2008-10-05 11:03:58 +02:00
|
|
|
args: with args;
|
|
|
|
|
|
|
|
# NOTE: This package does not build on 64-bit systems. Because of some faulty
|
|
|
|
# int->pointer arithmatic. The build scripts are abnormal - but it appears to
|
|
|
|
# work.
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "arb-2007-Dec-07";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://download.arb-home.de/release/2007_12_07/arbsrc.tgz;
|
|
|
|
sha256 = "04l7qj0wigg1h56a9d70hxhdr343v3dg5dhqrc7fahc1v4h8f1rd";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
2008-10-05 12:56:47 +02:00
|
|
|
buildInputs = [glew mesa libpng x11 libXpm lesstif lynx freeglut libtiff rxp sablotron libXaw perl jdk ];
|
2008-10-05 11:03:58 +02:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
tar xzf $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
echo `make` # avoids error signal
|
|
|
|
export ARBHOME=`pwd`
|
|
|
|
export PATH=$ARBHOME/bin:$PATH
|
|
|
|
make all
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2008-10-05 12:56:47 +02:00
|
|
|
datadir=/nix/var/lib/arb
|
2008-10-05 11:03:58 +02:00
|
|
|
ensureDir $out/lib
|
2008-10-05 12:56:47 +02:00
|
|
|
# link out shared location
|
|
|
|
ensureDir $datadir/lib/pts
|
|
|
|
chmod a+rwx $datadir/lib/pts
|
|
|
|
# cp -vau lib/pts $datadir/lib
|
2008-10-05 11:03:58 +02:00
|
|
|
rm -vrf lib/pts
|
2008-10-05 12:56:47 +02:00
|
|
|
ln -vs $datadir/lib/pts $out/lib/pts
|
|
|
|
# link out shared location
|
|
|
|
ensureDir $datadir/lib/nas
|
|
|
|
cp -vau lib/nas $datadir/lib
|
2008-10-05 11:03:58 +02:00
|
|
|
rm -vrf lib/nas
|
2008-10-05 12:56:47 +02:00
|
|
|
ln -vs $datadir/lib/nas $out/lib/nas
|
2008-10-05 11:03:58 +02:00
|
|
|
# bulk copy
|
|
|
|
cp -vau * $out
|
|
|
|
# replace arb script
|
|
|
|
mv $out/bin/arb $out/bin/arb.orig
|
|
|
|
cat > $out/bin/arb << ARB
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo Starting Nix compiled arb from $out
|
2008-10-05 12:56:47 +02:00
|
|
|
echo Shared databases are located in $datadir
|
2008-10-05 11:03:58 +02:00
|
|
|
export ARBHOME=$out
|
2008-10-05 12:56:47 +02:00
|
|
|
export LD_LIBRARY=$ARBHOME/lib
|
2008-10-05 11:03:58 +02:00
|
|
|
|
|
|
|
$out/bin/arb_ntree $*
|
|
|
|
|
|
|
|
ARB
|
|
|
|
chmod +x $out/bin/arb
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ARB software for sequence database handling and analysis";
|
2008-10-05 12:56:47 +02:00
|
|
|
longDescription = ''The ARB software is a graphically oriented package comprising various tools for sequence database handling and data analysis. A central database of processed (aligned) sequences and any type of additional data linked to the respective sequence entries is structured according to phylogeny or other user defined criteria'';
|
2008-10-05 11:03:58 +02:00
|
|
|
license = "non-free";
|
2008-10-05 12:56:47 +02:00
|
|
|
pkgMaintainer = "Pjotr Prins";
|
2008-10-05 11:03:58 +02:00
|
|
|
homepage = http://www.arb-home.de/;
|
|
|
|
};
|
|
|
|
}
|