nixpkgs-suyu/pkgs/applications/science/biology/messer-slim/default.nix
2022-02-14 00:46:29 +00:00

26 lines
741 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, gcc, gcc-unwrapped }:
stdenv.mkDerivation rec {
version = "3.7.1";
pname = "messer-slim";
src = fetchFromGitHub {
owner = "MesserLab";
repo = "SLiM";
rev = "v${version}";
sha256 = "sha256-3ox+9hzqI8s4gmEkQ3Xm1Ih639LBtcSJNNmJgbpWaoM=";
};
nativeBuildInputs = [ cmake gcc gcc-unwrapped ];
cmakeFlags = [ "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib" ];
meta = {
description = "An evolutionary simulation framework";
homepage = "https://messerlab.org/slim/";
license = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ bzizou ];
platforms = lib.platforms.all;
};
}