mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
21 lines
333 B
Nix
21 lines
333 B
Nix
{ stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pythonhome-wrapper";
|
|
|
|
unpackPhase = "true";
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
echo '
|
|
#!/bin/sh
|
|
|
|
BINDIR=`dirname $0`
|
|
PYTHONHOME=`dirname $BINDIR`
|
|
PYTHONHOME=`(cd $PYTHONHOME && pwd)`
|
|
export PYTHONHOME
|
|
|
|
$BINDIR/python "$@"
|
|
' > $out/bin/py
|
|
chmod +x $out/bin/py
|
|
'';
|
|
}
|