about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/jags/default.nix
blob: 5c0de33a71ae1c1cc38d10b053ce59da4deecaec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{lib, stdenv, fetchurl, gfortran, blas, lapack}:

stdenv.mkDerivation rec {
  name = "JAGS-4.3.0";
  src = fetchurl {
    url = "mirror://sourceforge/mcmc-jags/${name}.tar.gz";
    sha256 = "1z3icccg2ic56vmhyrpinlsvpq7kcaflk1731rgpvz9bk1bxvica";
  };

  nativeBuildInputs = [ gfortran ];

  buildInputs = [ blas lapack ];

  configureFlags = [ "--with-blas=-lblas" "--with-lapack=-llapack" ];

  meta = with lib; {
    description = "Just Another Gibbs Sampler";
    license     = licenses.gpl2;
    homepage    = "http://mcmc-jags.sourceforge.net";
    maintainers = [ maintainers.andres ];
    platforms = platforms.unix;
  };
}