about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/jags/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/science/math/jags/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/science/math/jags/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/science/math/jags/default.nix b/nixpkgs/pkgs/applications/science/math/jags/default.nix
new file mode 100644
index 000000000000..50d7df24417a
--- /dev/null
+++ b/nixpkgs/pkgs/applications/science/math/jags/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, fetchurl, gfortran, blas, lapack }:
+
+stdenv.mkDerivation rec {
+  pname = "JAGS";
+  version = "4.3.2";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/mcmc-jags/JAGS-${version}.tar.gz";
+    sha256 = "sha256-hx9VavQDp8LOag8C8Vz4WlcnY+CT0mZY66xVxKtHL8g=";
+  };
+
+  nativeBuildInputs = [ gfortran ];
+
+  buildInputs = [ blas lapack ];
+
+  configureFlags = [ "--with-blas=-lblas" "--with-lapack=-llapack" ];
+
+  meta = with lib; {
+    description = "Just Another Gibbs Sampler";
+    mainProgram = "jags";
+    license = licenses.gpl2;
+    homepage = "http://mcmc-jags.sourceforge.net";
+    maintainers = [ maintainers.andres ];
+    platforms = platforms.unix;
+  };
+}