diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2021-03-13 11:41:38 -0800 |
---|---|---|
committer | Zhaofeng Li <hello@zhaofeng.li> | 2021-03-13 15:41:55 -0800 |
commit | b67d19710c66af8e03ac9ef3325a742afb7d6945 (patch) | |
tree | 224c3e2284e91bd73e1f44bcaf27281bd21c3d59 | |
parent | 12de0d4c91ac3d53fb4f818c4eb5a8a4d74e17c6 (diff) |
kgx: init at unstable-2021-03-13
-rw-r--r-- | pkgs/applications/terminal-emulators/kgx/default.nix | 75 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 77 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/kgx/default.nix b/pkgs/applications/terminal-emulators/kgx/default.nix new file mode 100644 index 000000000000..9f8b3444ffb4 --- /dev/null +++ b/pkgs/applications/terminal-emulators/kgx/default.nix @@ -0,0 +1,75 @@ +{ lib +, stdenv +, genericBranding ? false +, fetchFromGitLab +, gettext +, gnome3 +, 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 + gnome3.libgtop + gnome3.nautilus + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1721f35fc82a..33fca8dbd0e9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29098,6 +29098,8 @@ in keynav = callPackage ../tools/X11/keynav { }; + kgx = callPackage ../applications/terminal-emulators/kgx { }; + kmon = callPackage ../tools/system/kmon { }; kompose = callPackage ../applications/networking/cluster/kompose { }; |