Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters