@@ -0,0 +1,24 @@
1+{ gccStdenv, fetchurl, zlib, openmpi }:
2+
3+gccStdenv.mkDerivation rec {
4+ version = "3.7.2";
5+ pname = "migrate";
6+
7+ src = fetchurl {
8+ url = "https://peterbeerli.com/migrate-html5/download_version3/${pname}-${version}.src.tar.gz";
9+ sha256 = "1p2364ffjc56i82snzvjpy6pkf6wvqwvlvlqxliscx2c303fxs8v";
10+ };
11+
12+ buildInputs = [ zlib openmpi ];
13+ setSourceRoot = ''sourceRoot=$(echo */src)'';
14+ buildFlags = [ "thread" "mpis" ];
15+ preInstall = "mkdir -p $out/man/man1";
16+
17+ meta = with gccStdenv.lib; {
18+ description = "Estimates population size, migration, population splitting parameters using genetic/genomic data";
19+ homepage = https://peterbeerli.com/migrate-html5/index.html;
20+ license = licenses.mit;
21+ maintainers = [ maintainers.bzizou ];
22+ platforms = platforms.unix;
23+ };
24+}