2021-03-13 20:41:38 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, genericBranding ? false
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gettext
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2021-03-16 18:37:45 +01:00
|
|
|
, libgtop
|
2021-03-13 20:41:38 +01:00
|
|
|
, gtk3
|
|
|
|
, libhandy
|
|
|
|
, pcre2
|
|
|
|
, vte
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, git
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, sassc
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "kgx";
|
|
|
|
version = "unstable-2021-03-13";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "ZanderBrown";
|
|
|
|
repo = "kgx";
|
|
|
|
rev = "105adb6a8d09418a3ce622442aef6ae623dee787";
|
|
|
|
sha256 = "0m34y0nbcfkyicb40iv0iqaq6f9r3f66w43lr803j3351nxqvcz2";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gettext
|
2021-03-16 18:37:45 +01:00
|
|
|
libgtop
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.nautilus
|
2021-03-13 20:41:38 +01:00
|
|
|
gtk3
|
|
|
|
libhandy
|
|
|
|
pcre2
|
|
|
|
vte
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
git
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
sassc
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = lib.optional genericBranding "-Dgeneric=true";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/postinstall.py
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/applications/org.gnome.zbrown.KingsCross.desktop \
|
|
|
|
--replace "Exec=kgx" "Exec=$out/bin/kgx"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple user-friendly terminal emulator for the GNOME desktop";
|
|
|
|
homepage = "https://gitlab.gnome.org/ZanderBrown/kgx";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ zhaofengli ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|