summary refs log tree commit diff
path: root/pkgs/applications/science/biology/migrate/default.nix
blob: ba55898e4f9d204055f4fd298473ebf01f285089 (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
{ gccStdenv, fetchurl, zlib, mpi }:

gccStdenv.mkDerivation rec {
  version = "3.7.2";
  pname = "migrate";

  src = fetchurl {
    url = "https://peterbeerli.com/migrate-html5/download_version3/${pname}-${version}.src.tar.gz";
    sha256 = "1p2364ffjc56i82snzvjpy6pkf6wvqwvlvlqxliscx2c303fxs8v";
  };

  buildInputs = [ zlib mpi ];
  setSourceRoot = ''sourceRoot=$(echo */src)'';
  buildFlags = [ "thread" "mpis" ];
  preInstall = "mkdir -p $out/man/man1";

  meta = with gccStdenv.lib; {
    description = "Estimates population size, migration, population splitting parameters using genetic/genomic data";
    homepage = "https://peterbeerli.com/migrate-html5/index.html";
    license = licenses.mit;
    maintainers = [ maintainers.bzizou ];
    platforms = platforms.unix;
  };
}