diff options
author | Ben Darwin <bcdarwin@gmail.com> | 2016-06-26 16:52:58 -0400 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-06-26 22:52:58 +0200 |
commit | 07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503 (patch) | |
tree | 9760b69913a9dbc371d9b501c380f3f144c5d1ed /pkgs/development/compilers/cmdstan | |
parent | 8199cda762760b6601d5a5c87a7b7debc3ba3e59 (diff) |
stan: fix build by not running tests with nonexistent /usr/bin/python (#15968)
Diffstat (limited to 'pkgs/development/compilers/cmdstan')
-rw-r--r-- | pkgs/development/compilers/cmdstan/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/cmdstan/default.nix b/pkgs/development/compilers/cmdstan/default.nix index 182808031e638..4bfe72c7acd14 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 |