2021-12-13 14:34:57 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gcc, gcc-unwrapped }:
|
2019-02-28 14:00:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-30 20:32:56 +00:00
|
|
|
version = "3.7";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "messer-slim";
|
2019-02-28 14:00:37 +00:00
|
|
|
|
2021-12-13 14:34:57 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MesserLab";
|
|
|
|
repo = "SLiM";
|
|
|
|
rev = "v${version}";
|
2021-12-30 20:32:56 +00:00
|
|
|
sha256 = "sha256-YEIpdW7W/Dezezh9r6q0fLkF4zb+oH36bAZ/YYqkr8k=";
|
2019-02-28 14:00:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake gcc gcc-unwrapped ];
|
|
|
|
|
2021-01-03 09:43:56 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
|
2019-02-28 14:00:37 +00:00
|
|
|
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An evolutionary simulation framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://messerlab.org/slim/";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = with lib.licenses; [ gpl3 ];
|
|
|
|
maintainers = with lib.maintainers; [ bzizou ];
|
|
|
|
platforms = lib.platforms.all;
|
2019-02-28 14:00:37 +00:00
|
|
|
};
|
|
|
|
}
|