about summary refs log tree commit diff
path: root/pkgs/applications/science/biology/slr/default.nix
blob: 629c10aecdff600ee70902b4a5bac913f42e0967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{stdenv, fetchurl, liblapack}:

stdenv.mkDerivation {
  name = "slr";
  src = fetchurl {
    url = http://www.ebi.ac.uk/goldman-srv/SLR/download/current/slr_source.tgz;
    sha256 = "0i81fv201p187mim4zakipxnhzqdvd3p5a9qa59xznc6458r2zsn";
  };

  buildInputs = [ liblapack ];
  buildPhase = ''
    cd src
    ls
    make -fMakefile.linux
  '';
  installPhase = ''
    mkdir -p $out/bin
    cp -v ../Slr $out/bin 
  '';

  meta = {
    description     = "Phylogenetic Analysis by Maximum Likelihood (PAML)";
    longDescription = ''
SLR is a program to detect sites in coding DNA that are unusually conserved and/or unusually variable (that is, evolving under purify or positive selection) by analysing the pattern of changes for an alignment of sequences on an evolutionary tree.     
'';
    license     = "GPL3";
    homepage    = http://www.ebi.ac.uk/goldman/SLR/;
  };
}