about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-06-03 22:20:40 -0400
committerGitHub <noreply@github.com>2020-06-03 22:20:40 -0400
commit9fc6768eb53c663cc491a7f914949cd4fb14acd0 (patch)
tree0e1b4b08f37375a9f8beb89a3a2bfc8ef1a8ee90 /pkgs/development/tools
parenta8acfdef0604f40fa46ef9eca9b050748ac6c573 (diff)
parent0332c06389924344ab1f5ba57ee18bbc490c8df1 (diff)
downloadnixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.tar
nixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.tar.gz
nixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.tar.bz2
nixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.tar.lz
nixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.tar.xz
nixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.tar.zst
nixlib-9fc6768eb53c663cc491a7f914949cd4fb14acd0.zip
Merge pull request #89306 from minijackson/coz-fix-python-shebang
coz: fix python shebang
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/analysis/coz/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/tools/analysis/coz/default.nix b/pkgs/development/tools/analysis/coz/default.nix
index e745f7fe6e53..09bb44dc55f0 100644
--- a/pkgs/development/tools/analysis/coz/default.nix
+++ b/pkgs/development/tools/analysis/coz/default.nix
@@ -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 = {