hjson: add python to PATH of wrapper

This commit is contained in:
Emery Hemingway 2021-11-14 10:11:06 +01:00 committed by ehmry
parent 2d4524eb8c
commit b932a6d4f4

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, pythonImportsCheckHook
, makeWrapper
}:
@ -23,7 +24,9 @@ buildPythonPackage rec {
postInstall = ''
rm $out/bin/hjson.cmd
wrapProgram $out/bin/hjson --set PYTHONPATH "$PYTHONPATH"
wrapProgram $out/bin/hjson \
--set PYTHONPATH "$PYTHONPATH" \
--prefix PATH : ${lib.makeBinPath [ python ]}
'';
meta = with lib; {