Skip to content

Commit

Permalink
kitty: init at 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Oct 19, 2017
1 parent 00e56fb commit 937942c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions pkgs/applications/misc/kitty/default.nix
@@ -0,0 +1,56 @@
{ stdenv, fetchFromGitHub, python3, pkgconfig
, fontconfig, freetype, glfw3, glew, libpng, libunistring, ncurses, zlib }:

python3.pkgs.buildPythonApplication rec {
name = "kitty-${version}";
version = "0.3.0";

src = fetchFromGitHub {
owner = "kovidgoyal";
repo = "kitty";
rev = "v${version}";
sha256 = "0k9c1xigz3vfmdbd0xmlryxzbgzs6synm3jxv46nnrbkd8pah29x";
};

format = "other";

nativeBuildInputs = [ pkgconfig ];

buildInputs = [ fontconfig freetype glew glfw3 libpng libunistring ncurses python3 zlib ];

propagatedBuildInputs = with python3.pkgs; [
];

dontBuild = true;

installPhase = ''
runHook preInstall
python3 setup.py linux-package --prefix=$out
# mkdir -p $out
# mv linux-package/{bin,lib,share} $out
runHook postInstall
'';

doCheck = false;

installCheckPhase = ''
runHook preInstallCheck
export HOME=tmp
python3 setup.py test
runHook postInstallCheck
'';

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; [ peterhoeg ];
platforms = with platforms; linux ++ darwin;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -16294,6 +16294,8 @@ with pkgs;

runc = callPackage ../applications/virtualization/runc {};

kitty = callPackage ../applications/misc/kitty { };

rxvt = callPackage ../applications/misc/rxvt { };

# urxvt
Expand Down

0 comments on commit 937942c

Please sign in to comment.