depot/third_party/nixpkgs/pkgs/by-name/pt/ptyxis/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

67 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
json-glib,
vte-gtk4,
libportal-gtk4,
pcre2,
}:
let
version = "46.5";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "chergert";
repo = "ptyxis";
rev = version;
hash = "sha256-PHjQJEM0W26ZpzW//+gsYCCq0lcikWh0707kDXxryAo=";
};
vte-gtk4-patched = vte-gtk4.overrideAttrs (prev: {
patches = (prev.patches or [ ]) ++ [
"${src}/build-aux/0001-a11y-implement-GtkAccessibleText.patch"
"${src}/build-aux/0001-add-notification-and-shell-precmd-preexec.patch"
];
});
in
stdenv.mkDerivation {
pname = "ptyxis";
inherit version src;
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [
libadwaita
json-glib
vte-gtk4-patched
libportal-gtk4
pcre2
];
passthru = {
inherit vte-gtk4-patched;
};
meta = {
description = "Terminal for GNOME with first-class support for containers";
homepage = "https://gitlab.gnome.org/chergert/ptyxis";
license = lib.licenses.gpl3Plus;
mainProgram = "ptyxis";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
};
}