23 , sixelSupport ? false
27 marble = callPackage ./marble.nix { };
29 stdenv.mkDerivation rec {
33 src = fetchFromGitLab {
34 domain = "gitlab.gnome.org";
35 owner = "raggesilver";
38 hash = "sha256-ebwh9WTooJuvYFIygDBn9lYC7+lx9P1HskvKU8EX9jw=";
42 # Fix closing confirmation dialogs not showing
44 url = "https://gitlab.gnome.org/raggesilver/blackbox/-/commit/3978c9b666d27adba835dd47cf55e21515b6d6d9.patch";
45 hash = "sha256-L/Ci4YqYNzb3F49bUwEWSjzr03MIPK9A5FEJCCct+7A=";
50 substituteInPlace build-aux/meson/postinstall.py \
51 --replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
52 patchShebangs build-aux/meson/postinstall.py
63 desktop-file-utils # For update-desktop-database
67 (vte-gtk4.overrideAttrs (old: {
68 src = fetchFromGitLab {
69 domain = "gitlab.gnome.org";
72 rev = "3c8f66be867aca6656e4109ce880b6ea7431b895";
73 hash = "sha256-vz9ircmPy2Q4fxNnjurkgJtuTSS49rBq/m61p1B43eU=";
75 } // lib.optionalAttrs sixelSupport {
76 buildInputs = old.buildInputs ++ [ libsixel ];
77 mesonFlags = old.mesonFlags ++ [ "-Dsixel=true" ];
88 mesonFlags = [ "-Dblackbox_is_flatpak=false" ];
91 description = "Beautiful GTK 4 terminal";
92 mainProgram = "blackbox";
93 homepage = "https://gitlab.gnome.org/raggesilver/blackbox";
94 changelog = "https://gitlab.gnome.org/raggesilver/blackbox/-/raw/v${version}/CHANGELOG.md";
95 license = licenses.gpl3Plus;
96 maintainers = with maintainers; [ chuangzhu linsui ];
97 platforms = platforms.linux;