1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

python: fix 'nproc not found' on darwin

Fixes: 58b862b75 ('darwin purity: pythonPackages.pandas')
Cc: @pikajude
This commit is contained in:
Dmitry Kalinkin 2016-10-11 08:15:44 -04:00
parent f1b9de3803
commit 95237f828b
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -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 = [