about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/biology/aragorn/default.nix
blob: fa0c10b00c205943a684c7255bf53f6824928ccb (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
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  version = "1.2.38";
  pname = "aragorn";

  src = fetchurl {
    url = "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/${pname}${version}.tgz";
    sha256 = "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b";
  };

  buildPhase = ''
    $CC -O3 -ffast-math -finline-functions -o aragorn aragorn${version}.c
  '';

  installPhase = ''
    mkdir -p $out/bin && cp aragorn $out/bin
    mkdir -p $out/man/1 && cp aragorn.1 $out/man/1
  '';

  meta = with lib; {
    description = "Detects tRNA, mtRNA, and tmRNA genes in nucleotide sequences";
    homepage = "http://mbio-serv2.mbioekol.lu.se/ARAGORN/";
    license = licenses.gpl2;
    maintainers = [ maintainers.bzizou ];
    platforms = platforms.unix;
  };
}