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

stdenv.mkDerivation rec {
  pname = "repseek";
  version = "9Sep2014";
  src = fetchurl {
    url = "https://bioinfo.mnhn.fr/abi/public/RepSeek/RepSeek.${version}.tgz";
    sha256 = "1jiknji3ivrv7zmrfbf2mccfpdwhin3lfxfsciaqwf69b3sda8nf";
  };

  preConfigure = ''
    mkdir -p $out/bin
    substituteInPlace Makefile \
      --replace "INSTALLDIR = \$\$HOME/bin" "INSTALLDIR = $out/bin/" \
      --replace "CC= gcc" "CC = $CC"
  '' + lib.optionalString stdenv.isLinux ''
    substituteInPlace Makefile --replace "MACHINE = MACOSX" "MACHINE = LINUX"
  '';

  meta = {
    description = "Tool to retrieve approximate repeats from large DNA sequences";
    homepage = "https://bioinfo.mnhn.fr/abi/public/RepSeek";
    maintainers = [ lib.maintainers.bzizou ];
    license = lib.licenses.lgpl21;
  };

}