2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchurl, gfortran, blas, lapack }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "JAGS";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "4.3.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://sourceforge/mcmc-jags/JAGS-${version}.tar.gz";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-hx9VavQDp8LOag8C8Vz4WlcnY+CT0mZY66xVxKtHL8g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ gfortran ];
|
|
|
|
|
|
|
|
buildInputs = [ blas lapack ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [ "--with-blas=-lblas" "--with-lapack=-llapack" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Just Another Gibbs Sampler";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jags";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "http://mcmc-jags.sourceforge.net";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.andres ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|