depot/third_party/nixpkgs/pkgs/applications/terminal-emulators/blackbox-terminal/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

72 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, fetchurl
, meson
, ninja
, pkg-config
, vala
, gtk4
, vte-gtk4
, json-glib
, sassc
, libadwaita
, pcre2
, libxml2
, librsvg
, callPackage
, python3
, gtk3
, desktop-file-utils
, wrapGAppsHook
}:
let
marble = callPackage ./marble.nix { };
in
stdenv.mkDerivation rec {
pname = "blackbox";
version = "0.12.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "raggesilver";
repo = "blackbox";
rev = "v${version}";
sha256 = "sha256-8u4qHC8+3rKDFNdg5kI48dBgAm3d6ESXN5H9aT/nIBY=";
};
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
'';
nativeBuildInputs = [
meson
ninja
pkg-config
vala
sassc
wrapGAppsHook
python3
gtk3 # For gtk-update-icon-cache
desktop-file-utils # For update-desktop-database
];
buildInputs = [
gtk4
vte-gtk4
json-glib
marble
libadwaita
pcre2
libxml2
librsvg
];
meta = with lib; {
description = "Beautiful GTK 4 terminal";
homepage = "https://gitlab.gnome.org/raggesilver/blackbox";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ chuangzhu ];
platforms = platforms.linux;
};
}