diff options
author | Milan Svoboda <milan.svoboda@centrum.cz> | 2017-10-25 23:03:20 +0200 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-10-25 22:03:20 +0100 |
commit | c564e54f12a0dd279e290202ab61532864dc9c14 (patch) | |
tree | 1e282e0e5c094feaf47945eb8139e6a0a1dbe74b /pkgs/applications/misc/kitty | |
parent | 5c0ebf550c66cb3aa45708a43ece6b8f4aa0f48c (diff) | |
download | nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.tar nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.tar.gz nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.tar.bz2 nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.tar.lz nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.tar.xz nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.tar.zst nixpkgs-c564e54f12a0dd279e290202ab61532864dc9c14.zip |
kitty: init at 0.4.2 (#30687)
* add new application: terminal kitty (opengl, c, python) https://github.com/kovidgoyal/kitty.git * kitty: nitpicks * update kitty 0.4.0 -> 0.4.2, add maintainer
Diffstat (limited to 'pkgs/applications/misc/kitty')
-rw-r--r-- | pkgs/applications/misc/kitty/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/kitty/default.nix b/pkgs/applications/misc/kitty/default.nix new file mode 100644 index 00000000000..e1afac735d8 --- /dev/null +++ b/pkgs/applications/misc/kitty/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, pkgs, python3Packages, glfw, libunistring, glew, fontconfig, zlib, pkgconfig, ncurses, imagemagick, makeWrapper }: + +with python3Packages; +buildPythonApplication rec { + version = "0.4.2"; + name = "kitty-${version}"; + format = "other"; + + src = fetchFromGitHub { + owner = "kovidgoyal"; + repo = "kitty"; + rev = "v${version}"; + sha256 = "058676r2b83mjggbfc701v3vlviaslf7qciz8sm8lcda82k01wfp"; + }; + + buildInputs = [ glew fontconfig glfw ncurses libunistring ]; + + nativeBuildInputs = [ pkgconfig ]; + + buildPhase = '' + python3 setup.py linux-package + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out + cp -r linux-package/{bin,share,lib} $out + wrapProgram "$out/bin/kitty" --prefix PATH : "$out/bin:${stdenv.lib.makeBinPath [ imagemagick ]}" + runHook postInstall + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/kovidgoyal/kitty; + description = "A modern, hackable, featureful, OpenGL based terminal emulator"; + license = licenses.gpl3; + maintainers = with maintainers; [ tex ]; + }; +} |