Merge pull request #89306 from minijackson/coz-fix-python-shebang

coz: fix python shebang
This commit is contained in:
Benjamin Hipple 2020-06-03 22:20:40 -04:00 committed by GitHub
commit 9fc6768eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
, libelfin
, ncurses
, python3
, python3Packages
, makeWrapper
}:
stdenv.mkDerivation rec {
@ -28,6 +29,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
ncurses
makeWrapper
python3Packages.wrapPython
];
buildInputs = [
@ -42,9 +44,7 @@ stdenv.mkDerivation rec {
# fix executable includes
chmod -x $out/include/coz.h
# make sure that PYTHONPATH doesn't leak from the environment
wrapProgram $out/bin/coz \
--unset PYTHONPATH
wrapPythonPrograms
'';
meta = {