From 95237f828b30b79b939488917236f000eb4eee87 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 11 Oct 2016 08:15:44 -0400 Subject: [PATCH] python: fix 'nproc not found' on darwin Fixes: 58b862b75 ('darwin purity: pythonPackages.pandas') Cc: @pikajude --- pkgs/development/interpreters/python/cpython/2.7/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/2.7/default.nix b/pkgs/development/interpreters/python/cpython/2.7/default.nix index 4c28e977b49..493f1cfb531 100644 --- a/pkgs/development/interpreters/python/cpython/2.7/default.nix +++ b/pkgs/development/interpreters/python/cpython/2.7/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, fetchpatch, self, callPackage, python27Packages -, bzip2, openssl, gettext +, bzip2, openssl, gettext, coreutils , includeModules ? false @@ -90,7 +90,7 @@ let '' + optionalString stdenv.isDarwin '' substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"' substituteInPlace Lib/multiprocessing/__init__.py \ - --replace 'os.popen(comm)' 'os.popen("nproc")' + --replace 'os.popen(comm)' 'os.popen("${coreutils}/bin/nproc")' ''; configureFlags = [