about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2016-06-26 16:52:58 -0400
committerFranz Pletz <fpletz@fnordicwalking.de>2016-06-26 22:52:58 +0200
commit07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503 (patch)
tree9760b69913a9dbc371d9b501c380f3f144c5d1ed
parent8199cda762760b6601d5a5c87a7b7debc3ba3e59 (diff)
downloadnixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.tar
nixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.tar.gz
nixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.tar.bz2
nixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.tar.lz
nixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.tar.xz
nixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.tar.zst
nixlib-07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503.zip
stan: fix build by not running tests with nonexistent /usr/bin/python (#15968)
-rw-r--r--pkgs/development/compilers/cmdstan/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/cmdstan/default.nix b/pkgs/development/compilers/cmdstan/default.nix
index 182808031e63..4bfe72c7acd1 100644
--- a/pkgs/development/compilers/cmdstan/default.nix
+++ b/pkgs/development/compilers/cmdstan/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, python }:
 
 stdenv.mkDerivation rec {
   name = "cmdstan-2.9.0";
@@ -10,9 +10,10 @@ stdenv.mkDerivation rec {
 
   buildFlags = "build";
   enableParallelBuilding = true;
+  nativeBuildInputs = stdenv.lib.optional doCheck python;
 
   doCheck = true;
-  checkPhase = "./runCmdStanTests.py src/test/interface";
+  checkPhase = "python ./runCmdStanTests.py src/test/interface";  # see #5368
 
   installPhase = ''
     mkdir -p $out/opt $out/bin