mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
pypy: fix build
This commit is contained in:
parent
f02ccf6acd
commit
c0d814d62b
1 changed files with 7 additions and 7 deletions
|
@ -81,6 +81,7 @@ let
|
||||||
mkdir -p $out/{bin,include,lib,pypy-c}
|
mkdir -p $out/{bin,include,lib,pypy-c}
|
||||||
|
|
||||||
cp -R {include,lib_pypy,lib-python,pypy-c} $out/pypy-c
|
cp -R {include,lib_pypy,lib-python,pypy-c} $out/pypy-c
|
||||||
|
cp libpypy-c.so $out/lib/
|
||||||
ln -s $out/pypy-c/pypy-c $out/bin/pypy
|
ln -s $out/pypy-c/pypy-c $out/bin/pypy
|
||||||
chmod +x $out/bin/pypy
|
chmod +x $out/bin/pypy
|
||||||
|
|
||||||
|
@ -88,13 +89,12 @@ let
|
||||||
ln -s $out/pypy-c/include $out/include/${libPrefix}
|
ln -s $out/pypy-c/include $out/include/${libPrefix}
|
||||||
ln -s $out/pypy-c/lib-python/${pythonVersion} $out/lib/${libPrefix}
|
ln -s $out/pypy-c/lib-python/${pythonVersion} $out/lib/${libPrefix}
|
||||||
|
|
||||||
|
wrapProgram "$out/bin/pypy" \
|
||||||
|
--set LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:$out/lib" \
|
||||||
|
--set LIBRARY_PATH "${LIBRARY_PATH}:$out/lib"
|
||||||
|
|
||||||
# verify cffi modules
|
# verify cffi modules
|
||||||
$out/bin/pypy -c "import Tkinter;import sqlite3;import curses"
|
$out/bin/pypy -c "import Tkinter;import sqlite3;import curses"
|
||||||
|
|
||||||
# make sure pypy finds sqlite3 library
|
|
||||||
wrapProgram "$out/bin/pypy" \
|
|
||||||
--set LD_LIBRARY_PATH "${LD_LIBRARY_PATH}" \
|
|
||||||
--set LIBRARY_PATH "${LIBRARY_PATH}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = rec {
|
passthru = rec {
|
||||||
|
@ -105,11 +105,11 @@ let
|
||||||
interpreter = "${self}/bin/${executable}";
|
interpreter = "${self}/bin/${executable}";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true; # almost no parallelization without STM
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://pypy.org/;
|
homepage = http://pypy.org/;
|
||||||
description = "Fast, compliant alternative implementation of the Python language (2.7.3)";
|
description = "Fast, compliant alternative implementation of the Python language (2.7.8)";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ iElectric ];
|
maintainers = with maintainers; [ iElectric ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue