Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zutty: init at 0.16-unstable-2024-08-18 #336255

Merged
merged 1 commit into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17754,6 +17754,12 @@
githubId = 17805516;
name = "Rohan Rao";
};
rolfschr = {
email = "rolf.schr@posteo.de";
github = "rolfschr";
githubId = 1188465;
name = "Rolf Schröder";
};
rollf = {
email = "rolf.schroeder@limbus-medtec.com";
github = "rollf";
Expand Down
2 changes: 2 additions & 0 deletions nixos/tests/terminal-emulators.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ let tests = {
xfce4-terminal.pkg = p: p.xfce.xfce4-terminal;

xterm.pkg = p: p.xterm;

zutty.pkg = p: p.zutty;
};
in mapAttrs (name: { pkg, executable ? name, cmd ? "SHELL=$command ${executable}", colourTest ? true, pinkValue ? "#FF0087", kill ? false }: makeTest
{
Expand Down
59 changes: 59 additions & 0 deletions pkgs/by-name/zu/zutty/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchgit,
pkg-config,
freetype,
wafHook,
python3,
libXmu,
glew,
ucs-fonts,
nixosTests,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zutty";
version = "0.16-unstable-2024-08-18";

src = fetchgit {
url = "https://git.hq.sig7.se/zutty.git";
rev = "04b2ca3b3aaa070c41583247f8112c31b6003886"; # 20240818
hash = "sha256-izUbn2B3RqIIOW9tuL7DFLqJdektCftxnpQssJMYxC8=";
};

postPatch =
let
fontpaths = [
"/run/current-system/sw/share/X11/fonts" # available if fonts.fontDir.enable = true
"${ucs-fonts}/share/fonts"
];
in
''
substituteInPlace src/options.h \
--replace-fail /usr/share/fonts ${builtins.concatStringsSep ":" fontpaths}
'';

nativeBuildInputs = [
pkg-config
wafHook
python3
];

buildInputs = [
freetype
libXmu
glew
];

passthru = {
tests = lib.optionalAttrs stdenv.isLinux { default = nixosTests.terminal-emulators.zutty; };
};

meta = {
homepage = "https://tomscii.sig7.se/zutty/";
description = "X terminal emulator rendering through OpenGL ES Compute Shaders";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.rolfschr ];
platforms = lib.platforms.linux;
};
})