From 7200a5c07904791b78987fe02775f52386b32a14 Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Fri, 11 Dec 2015 22:35:17 +1000 Subject: [PATCH] cmdstan: init at 2.9.0 --- .../development/compilers/cmdstan/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/compilers/cmdstan/default.nix diff --git a/pkgs/development/compilers/cmdstan/default.nix b/pkgs/development/compilers/cmdstan/default.nix new file mode 100644 index 000000000000..182808031e63 --- /dev/null +++ b/pkgs/development/compilers/cmdstan/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "cmdstan-2.9.0"; + + src = fetchurl { + url = "https://github.com/stan-dev/cmdstan/releases/download/v2.9.0/cmdstan-2.9.0.tar.gz"; + sha256 = "08bim6nxgam989152hm0ga1rfb33mr71pwsym1nmfmavma68bwm9"; + }; + + buildFlags = "build"; + enableParallelBuilding = true; + + doCheck = true; + checkPhase = "./runCmdStanTests.py src/test/interface"; + + installPhase = '' + mkdir -p $out/opt $out/bin + cp -r . $out/opt/cmdstan + ln -s $out/opt/cmdstan/bin/stanc $out/bin/stanc + ln -s $out/opt/cmdstan/bin/stansummary $out/bin/stansummary + cat > $out/bin/stan <