python2: Fix on Darwin

Presumably $out/lib/python*/plat-linux2/ is a Linux-only thing.
This commit is contained in:
Tuomas Tynkkynen 2016-02-03 00:51:08 +02:00 committed by Dan Peebles
parent 0cd08e7e02
commit 78e62da7f1

View File

@ -141,9 +141,9 @@ let
paxmark E $out/bin/python${majorVersion}
${ optionalString includeModules "$out/bin/python ./setup.py build_ext"}
${optionalString includeModules "$out/bin/python ./setup.py build_ext"}
rm "$out"/lib/python*/plat-linux2/regen # refers to glibc.dev
${optionalString stdenv.isLinux ''rm "$out"/lib/python*/plat-linux2/regen # refers to glibc.dev''}
'';
passthru = rec {