Merge branch 'origin/master' into stdenv-updates.
There was a minor conflict in 'stumpwm'. The package needs texinfo version 4.x. At least is used to, I'm not sure whether it still does.
This commit is contained in:
@@ -160,6 +160,11 @@ let
|
||||
deps = [ ncurses ];
|
||||
};
|
||||
|
||||
curses_panel = buildInternalPythonModule {
|
||||
moduleName = "curses_panel";
|
||||
deps = [ ncurses modules.curses ];
|
||||
};
|
||||
|
||||
gdbm = buildInternalPythonModule {
|
||||
moduleName = "gdbm";
|
||||
internalName = "gdbm";
|
||||
|
||||
@@ -164,6 +164,11 @@ let
|
||||
deps = [ ncurses ];
|
||||
};
|
||||
|
||||
curses_panel = buildInternalPythonModule {
|
||||
moduleName = "curses_panel";
|
||||
deps = [ ncurses modules.curses ];
|
||||
};
|
||||
|
||||
crypt = buildInternalPythonModule {
|
||||
moduleName = "crypt";
|
||||
internalName = "crypt";
|
||||
|
||||
@@ -1,23 +1,26 @@
|
||||
# Create a python that knows about additional python packages via
|
||||
# PYTHONPATH
|
||||
{ stdenv, python, buildEnv, makeWrapper, recursivePthLoader, extraLibs ? [] }:
|
||||
|
||||
{ stdenv, python, makeWrapper, recursivePthLoader, extraLibs ? [] }:
|
||||
# Create a python executable that knows about additional packages.
|
||||
|
||||
stdenv.mkDerivation {
|
||||
(buildEnv {
|
||||
name = "python-${python.version}-wrapper";
|
||||
paths = extraLibs ++ [ python makeWrapper recursivePthLoader ];
|
||||
ignoreCollisions = false;
|
||||
|
||||
propagatedBuildInputs = extraLibs ++ [ python makeWrapper recursivePthLoader ];
|
||||
|
||||
unpackPhase = "true";
|
||||
installPhase = ''
|
||||
postBuild = ''
|
||||
. "${makeWrapper}/nix-support/setup-hook"
|
||||
if [ -L "$out/bin" ]; then
|
||||
unlink "$out/bin"
|
||||
fi
|
||||
mkdir -p "$out/bin"
|
||||
for prg in 2to3 idle pdb pdb${python.majorVersion} pydoc python python-config python${python.majorVersion} python${python.majorVersion}-config smtpd.py; do
|
||||
makeWrapper "$python/bin/$prg" "$out/bin/$prg" --suffix PYTHONPATH : "$PYTHONPATH"
|
||||
cd "${python}/bin"
|
||||
for prg in *; do
|
||||
echo "$prg --> $out/bin/$prg"
|
||||
rm -f "$out/bin/$prg"
|
||||
makeWrapper "${python}/bin/$prg" "$out/bin/$prg" --set PYTHONHOME "$out"
|
||||
done
|
||||
ensureDir "$out/share"
|
||||
ln -s "$python/share/man" "$out/share/man"
|
||||
'';
|
||||
|
||||
}) // {
|
||||
inherit python;
|
||||
inherit (python) meta;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user