mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
602f7e5aa4
when you run nix-shell 2 times at the same time of project (but different branches) you get collision in names inside /tmp folder. i solved this by hashing current path of developing folder and using that as indentifier while still keeping name at the end. diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 4c9c53a..6ec7934 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -161,11 +161,12 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl shellHook = attrs.shellHook or '' if test -e setup.py; then - mkdir -p /tmp/$name/lib/${python.libPrefix}/site-packages + tmp_path=/tmp/`pwd | md5sum | cut -f 1 -d " "`-$name + mkdir -p $tmp_path/lib/${python.libPrefix}/site-packages ${preShellHook} - export PATH="/tmp/$name/bin:$PATH" - export PYTHONPATH="/tmp/$name/lib/${python.libPrefix}/site-packages:$PYTHONPATH" - ${python}/bin/${python.executable} setup.py develop --prefix /tmp/$name + export PATH="$tmp_path/bin:$PATH" + export PYTHONPATH="$tmp_path/lib/${python.libPrefix}/site-packages:$PYTHONPATH" + ${python}/bin/${python.executable} setup.py develop --prefix $tmp_path ${postShellHook} fi ''; |
||
---|---|---|
.. | ||
4suite | ||
blivet | ||
bsddb3 | ||
buildout-nix | ||
dbus | ||
distutils-cfg | ||
ecdsa | ||
generic | ||
gyp | ||
h5py | ||
irclib | ||
libsexy | ||
mpi4py | ||
mygpoclient | ||
numeric | ||
psyco | ||
pycairo | ||
pycangjie | ||
pycrypto | ||
pycups | ||
pyexiv2 | ||
pygame | ||
pygobject | ||
pygtk | ||
pylint | ||
pyopenssl | ||
pyqt | ||
pyside | ||
pyx | ||
pyxml | ||
rbtools | ||
recursive-pth-loader | ||
rhpl | ||
setuptools | ||
sip | ||
slowaes | ||
stringtemplate | ||
tables | ||
wxPython | ||
xmpppy | ||
boto-1.9-python-2.7.patch | ||
btrees_interger_overflow.patch | ||
fedpkg-buildfix.diff | ||
pyuv-external-libuv.patch | ||
rpkg-buildfix.diff | ||
sqlalchemy-0.7.10-test-failures.patch | ||
tarsnapper-path.patch | ||
virtualenv-change-prefix.patch |