2021-12-24 04:21:11 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gcc, gcc-unwrapped }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "messer-slim";
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MesserLab";
|
|
|
|
repo = "SLiM";
|
|
|
|
rev = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-2iEflSDknlQtCLz2MvEZExOT+MQlEYOMY2JI0XE6mw0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake gcc gcc-unwrapped ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An evolutionary simulation framework";
|
|
|
|
homepage = "https://messerlab.org/slim/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = with lib.licenses; [ gpl3 ];
|
|
|
|
maintainers = with lib.maintainers; [ bzizou ];
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|