Merge pull request #89306 from minijackson/coz-fix-python-shebang
coz: fix python shebang
This commit is contained in:
commit
9fc6768eb5
@ -3,6 +3,7 @@
|
|||||||
, libelfin
|
, libelfin
|
||||||
, ncurses
|
, ncurses
|
||||||
, python3
|
, python3
|
||||||
|
, python3Packages
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -28,6 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
ncurses
|
ncurses
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
python3Packages.wrapPython
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -42,9 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
# fix executable includes
|
# fix executable includes
|
||||||
chmod -x $out/include/coz.h
|
chmod -x $out/include/coz.h
|
||||||
|
|
||||||
# make sure that PYTHONPATH doesn't leak from the environment
|
wrapPythonPrograms
|
||||||
wrapProgram $out/bin/coz \
|
|
||||||
--unset PYTHONPATH
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user