diff options
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/gotktrix/default.nix')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/gotktrix/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
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 00000000000..f44c05da5c0 --- /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.2"; + + src = fetchFromGitHub { + owner = "diamondburned"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-K+q0sykdOMnAWypOXnwTU5oTokpYw61CTsAW1gIvGSQ="; + }; + + vendorSha256 = "sha256-Br9KgUoN01yoGujgbj5UEoB57K87oEH/o40rrRtIZVY="; + + 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; + }; +} |