about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2008-10-05 10:56:23 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2008-10-05 10:56:23 +0000
commitfcb2efbc928975e617a20f6d532512818f986c91 (patch)
tree68f9e1894a0b439a138cd34792e0e5107c44ee3b /pkgs
parent10e0a6cf6d82ea41f43ef558aa816bcb8da308b1 (diff)
downloadnixlib-fcb2efbc928975e617a20f6d532512818f986c91.tar
nixlib-fcb2efbc928975e617a20f6d532512818f986c91.tar.gz
nixlib-fcb2efbc928975e617a20f6d532512818f986c91.tar.bz2
nixlib-fcb2efbc928975e617a20f6d532512818f986c91.tar.lz
nixlib-fcb2efbc928975e617a20f6d532512818f986c91.tar.xz
nixlib-fcb2efbc928975e617a20f6d532512818f986c91.tar.zst
nixlib-fcb2efbc928975e617a20f6d532512818f986c91.zip
Added shared dir and updated reference to ARB
svn path=/nixpkgs/trunk/; revision=12958
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/biology/arb/default.nix37
1 files changed, 23 insertions, 14 deletions
diff --git a/pkgs/applications/science/biology/arb/default.nix b/pkgs/applications/science/biology/arb/default.nix
index d84d4f081c66..3f780fd2b6f7 100644
--- a/pkgs/applications/science/biology/arb/default.nix
+++ b/pkgs/applications/science/biology/arb/default.nix
@@ -27,19 +27,26 @@ stdenv.mkDerivation {
   '';
 
   installPhase = ''
-    datadir=/nix/var/lib/arb
     ensureDir $out/lib
-    # link out shared location
-    ensureDir $datadir/lib/pts
-    chmod a+rwx $datadir/lib/pts
-    # cp -vau lib/pts $datadir/lib
+    shareddir=/nix/var/lib/arb
+    # link out writable shared location lib/pts
+    ensureDir $shareddir/lib/pts
+    cp -vau lib/pts $shareddir/lib
     rm -vrf lib/pts
-    ln -vs $datadir/lib/pts $out/lib/pts
-    # link out shared location
-    ensureDir $datadir/lib/nas
-    cp -vau lib/nas $datadir/lib
+    ln -vs $shareddir/lib/pts $out/lib/pts
+    chmod a+rw -R $shareddir/lib/pts
+    # link out writable shared location lib/nas/
+    ensureDir $shareddir/lib/nas
+    cp -vau lib/nas $shareddir/lib
     rm -vrf lib/nas
-    ln -vs $datadir/lib/nas $out/lib/nas
+    ln -vs $shareddir/lib/nas $out/lib/nas
+    chmod a+rw -R $shareddir/lib/nas
+    # link out shared lib/pixmaps (not sure about this, yet):
+    ensureDir $shareddir/lib/pixmaps
+    cp -vau lib/pixmaps $shareddir/lib
+    rm -vrf lib/pixmaps
+    ln -vs $shareddir/lib/pixmaps $out/lib/pixmaps
+    chmod a+rw -R $shareddir/lib/pixmaps
     # bulk copy
     cp -vau * $out
     # replace arb script
@@ -48,9 +55,10 @@ stdenv.mkDerivation {
 #!/bin/sh
 
 echo Starting Nix compiled arb from $out
-echo Shared databases are located in $datadir
+echo Shared databases are located in $shareddir
+# sometimes local profiles override these:
 export ARBHOME=$out
-export LD_LIBRARY=$ARBHOME/lib
+export LD_LIBRARY=$ARBHOME/lib   
 
 $out/bin/arb_ntree $*
 
@@ -60,9 +68,10 @@ ARB
 
   meta = {
     description     = "ARB software for sequence database handling and analysis";
-    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''; 
+    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. Note that this package includes its own older versions of clustal etc.''; 
     license     = "non-free";
-    pkgMaintainer = "Pjotr Prins";
+    pkgMaintainer = "http://BioLib.open-bio.org/";
     homepage    = http://www.arb-home.de/;
+    priority    = "10";   # because it includes binaries of clustal etc.
   };
 }