diff --git a/pkgs/applications/networking/instant-messengers/gotktrix/default.nix b/pkgs/applications/networking/instant-messengers/gotktrix/default.nix new file mode 100644 index 000000000000..0500302ddedb --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/gotktrix/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, gtk4 +, glib +, gobject-introspection +, pkg-config +, go +}: + +buildGoModule rec { + pname = "gotktrix"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "diamondburned"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-9feKg/rnkWdJRolHBQ5WT6Rl3xTFe82M8HyxJK3VuN4="; + }; + + vendorSha256 = "sha256-eO/2MvWOVCeeCsiU2mSwgSEVlSbCXOp8qHyoG0lmk+Q="; + + buildInputs = [ + gtk4 + glib + gobject-introspection + ]; + + nativeBuildInputs = [ pkg-config ]; + + # Checking requires a working display + doCheck = false; + + meta = with lib; { + description = "Matrix client written in Go using GTK4"; + homepage = "https://github.com/diamondburned/gotktrix"; + license = licenses.agpl3Plus; + maintainers = with maintainers; [ chuangzhu ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad051141479d..06f808ca51f5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1927,6 +1927,8 @@ with pkgs; gopacked = callPackage ../applications/misc/gopacked { }; + gotktrix = callPackage ../applications/networking/instant-messengers/gotktrix { }; + gucci = callPackage ../tools/text/gucci { }; guglielmo = libsForQt5.callPackage ../applications/radio/guglielmo { };