Merge pull request #309063 from Aleksanaa/ptyxis

ptyxis: init at 46.1
This commit is contained in:
Aleksana 2024-05-10 11:14:15 +08:00 committed by GitHub
commit f96fe80fc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,66 @@
{
lib,
stdenv,
fetchFromGitLab,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
json-glib,
vte-gtk4,
libportal-gtk4,
pcre2,
}:
let
version = "46.1";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "chergert";
repo = "ptyxis";
rev = version;
hash = "sha256-4fdl6H0kxZwpEQp+sZJkO0auQDR327m7RDXf6tbB5x0=";
};
vte-gtk4-patched = vte-gtk4.overrideAttrs (prev: {
patches = (prev.patches or [ ]) ++ [
"${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 = "A 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;
};
}