mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +03:00
Merge #19450: python: fix 'nproc not found' on darwin
This commit is contained in:
commit
d26a6a87df
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, self, callPackage, python27Packages
|
{ stdenv, fetchurl, fetchpatch, self, callPackage, python27Packages
|
||||||
, bzip2, openssl, gettext
|
, bzip2, openssl, gettext, coreutils
|
||||||
|
|
||||||
, includeModules ? false
|
, includeModules ? false
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ let
|
|||||||
'' + optionalString stdenv.isDarwin ''
|
'' + optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
|
substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
|
||||||
substituteInPlace Lib/multiprocessing/__init__.py \
|
substituteInPlace Lib/multiprocessing/__init__.py \
|
||||||
--replace 'os.popen(comm)' 'os.popen("nproc")'
|
--replace 'os.popen(comm)' 'os.popen("${coreutils}/bin/nproc")'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
Loading…
Reference in New Issue
Block a user