diff options
author | sternenseemann <sternenseemann@systemli.org> | 2020-07-30 17:06:30 +0200 |
---|---|---|
committer | lukasepple <git@lukasepple.de> | 2020-07-30 19:20:13 +0200 |
commit | c8f1df041f5801f79c3441398f20cb4c71bc5e90 (patch) | |
tree | 0575f5ee0d6c6b7bde1b08082891aea155d50a4b /pkgs/applications/misc/kitty/default.nix | |
parent | 71412714101e19f5b530fea8e6b5fc9733523011 (diff) | |
download | nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.tar nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.tar.gz nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.tar.bz2 nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.tar.lz nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.tar.xz nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.tar.zst nixpkgs-c8f1df041f5801f79c3441398f20cb4c71bc5e90.zip |
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.
Diffstat (limited to 'pkgs/applications/misc/kitty/default.nix')
-rw-r--r-- | pkgs/applications/misc/kitty/default.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/applications/misc/kitty/default.nix b/pkgs/applications/misc/kitty/default.nix index 85e9795a036..18191750123 100644 --- a/pkgs/applications/misc/kitty/default.nix +++ b/pkgs/applications/misc/kitty/default.nix @@ -20,14 +20,14 @@ with python3Packages; buildPythonApplication rec { pname = "kitty"; - version = "0.18.1"; + version = "0.18.2"; format = "other"; src = fetchFromGitHub { owner = "kovidgoyal"; repo = "kitty"; rev = "v${version}"; - sha256 = "1g4mfgygyl143k0k6d3cb8b2l05ahiamlcqs1iqi66pc73cax4z6"; + sha256 = "0x6h8g017mbpjkpkb1y8asyfdc48bgjzmj5gachsp5cf5jcqwir2"; }; buildInputs = [ @@ -85,9 +85,15 @@ buildPythonApplication rec { checkInputs = [ pillow ]; - checkPhase = '' - ${python.interpreter} test.py - ''; + checkPhase = + let buildBinPath = + if stdenv.isDarwin + then "kitty.app/Contents/MacOS" + else "linux-package/bin"; + in + '' + env PATH="${buildBinPath}:$PATH" ${python.interpreter} test.py + ''; installPhase = '' runHook preInstall |