From 07cfc1553fca3f686be7fdd3ddaa07a0fc8e1503 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Sun, 26 Jun 2016 16:52:58 -0400 Subject: [PATCH] stan: fix build by not running tests with nonexistent /usr/bin/python (#15968) --- pkgs/development/compilers/cmdstan/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/cmdstan/default.nix b/pkgs/development/compilers/cmdstan/default.nix index 182808031e6..4bfe72c7acd 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