kitty: 0.18.1 → 0.18.2

For the newly introduced test_multiprocessing_spawn, we need to set
PATH to include the freshly built kitty binary, since it uses
kitty_exe() to determine the path to the binary which it uses to
spawn worker processes.
This commit is contained in:
sternenseemann 2020-07-30 17:06:30 +02:00 committed by lukasepple
parent 7141271410
commit c8f1df041f

View File

@ -20,14 +20,14 @@
with python3Packages; with python3Packages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "kitty"; pname = "kitty";
version = "0.18.1"; version = "0.18.2";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kovidgoyal"; owner = "kovidgoyal";
repo = "kitty"; repo = "kitty";
rev = "v${version}"; rev = "v${version}";
sha256 = "1g4mfgygyl143k0k6d3cb8b2l05ahiamlcqs1iqi66pc73cax4z6"; sha256 = "0x6h8g017mbpjkpkb1y8asyfdc48bgjzmj5gachsp5cf5jcqwir2";
}; };
buildInputs = [ buildInputs = [
@ -85,9 +85,15 @@ buildPythonApplication rec {
checkInputs = [ pillow ]; checkInputs = [ pillow ];
checkPhase = '' checkPhase =
${python.interpreter} test.py let buildBinPath =
''; if stdenv.isDarwin
then "kitty.app/Contents/MacOS"
else "linux-package/bin";
in
''
env PATH="${buildBinPath}:$PATH" ${python.interpreter} test.py
'';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall