diff options
author | Domen Kozar <domen@dev.si> | 2013-07-29 14:52:19 +0200 |
---|---|---|
committer | Domen Kozar <domen@dev.si> | 2013-07-29 14:52:19 +0200 |
commit | 918e5efb99a790362c8aa8fc70edc39f2b284575 (patch) | |
tree | 1777adbe68ea539133390f8982aefc0459d6ab7c /pkgs/development/interpreters/pypy | |
parent | 4993f07feecc5650f58713866cbec57fa4c4d0a0 (diff) | |
download | nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.tar nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.tar.gz nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.tar.bz2 nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.tar.lz nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.tar.xz nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.tar.zst nixlib-918e5efb99a790362c8aa8fc70edc39f2b284575.zip |
recurse into python33 and pypy packages
Diffstat (limited to 'pkgs/development/interpreters/pypy')
-rw-r--r-- | pkgs/development/interpreters/pypy/2.0/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/pypy/2.0/default.nix b/pkgs/development/interpreters/pypy/2.0/default.nix index f3d1e4e9ade7..2dd681239a60 100644 --- a/pkgs/development/interpreters/pypy/2.0/default.nix +++ b/pkgs/development/interpreters/pypy/2.0/default.nix @@ -7,6 +7,8 @@ let majorVersion = "2.0"; version = "${majorVersion}.2"; + pythonVersion = "2.7"; + libPrefix = "pypy${majorVersion}"; pypy = stdenv.mkDerivation rec { name = "pypy-${version}"; @@ -57,18 +59,21 @@ let ''; installPhase = '' - mkdir -p $out/bin - mkdir -p $out/pypy-c - # TODO: make libPrefix work + mkdir -p $out/{bin,include,lib,pypy-c} + cp -R {include,lib_pypy,lib-python,pypy-c} $out/pypy-c ln -s $out/pypy-c/pypy-c $out/bin/pypy chmod +x $out/bin/pypy + + # other packages expect to find stuff according to libPrefix + ln -s $out/pypy-c/include $out/include/${libPrefix} + ln -s $out/pypy-c/lib-python/${pythonVersion} $out/lib/${libPrefix} + # TODO: compile python files? ''; passthru = { - inherit zlibSupport; - libPrefix = "pypy${majorVersion}"; + inherit zlibSupport libPrefix; executable = "pypy"; }; |