2022-11-08 08:58:58 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, cairo
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, graphene
|
2023-02-02 10:06:59 +00:00
|
|
|
, gst_all_1
|
2022-11-08 08:58:58 +00:00
|
|
|
, gtk4
|
|
|
|
, lib
|
2022-12-11 13:30:02 +00:00
|
|
|
, libadwaita
|
2023-02-02 10:06:59 +00:00
|
|
|
, libcanberra-gtk3
|
2022-11-08 08:58:58 +00:00
|
|
|
, pango
|
|
|
|
, pkg-config
|
2023-02-02 10:06:59 +00:00
|
|
|
, sound-theme-freedesktop
|
2022-12-02 19:10:00 +00:00
|
|
|
, wrapGAppsHook4
|
2022-11-08 08:58:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2024-03-10 14:00:59 +00:00
|
|
|
pname = "dissent";
|
2024-03-20 19:46:44 +00:00
|
|
|
version = "0.0.22";
|
2022-11-08 08:58:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "diamondburned";
|
2024-03-10 14:00:59 +00:00
|
|
|
repo = "dissent";
|
2022-11-08 08:58:58 +00:00
|
|
|
rev = "v${version}";
|
2024-03-20 19:46:44 +00:00
|
|
|
hash = "sha256-HNNTF/a+sLFp+HCxltYRuDssoLnIhzEXuDLKTPxWzeM=";
|
2022-11-08 08:58:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
pkg-config
|
2022-12-02 19:10:00 +00:00
|
|
|
wrapGAppsHook4
|
2022-11-08 08:58:58 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
graphene
|
|
|
|
gtk4
|
|
|
|
pango
|
2023-02-02 10:06:59 +00:00
|
|
|
# Optional according to upstream but required for sound and video
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-ugly
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
libcanberra-gtk3
|
|
|
|
sound-theme-freedesktop
|
2022-12-11 13:30:02 +00:00
|
|
|
libadwaita
|
2022-11-08 08:58:58 +00:00
|
|
|
];
|
|
|
|
|
2022-12-11 13:30:02 +00:00
|
|
|
postInstall = ''
|
2024-03-10 14:00:59 +00:00
|
|
|
install -D -m 444 -t $out/share/applications nix/so.libdb.dissent.desktop
|
|
|
|
install -D -m 444 internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg $out/share/icons/hicolor/scalable/apps/so.libdb.dissent.svg
|
2022-12-11 13:30:02 +00:00
|
|
|
'';
|
|
|
|
|
2024-03-10 14:00:59 +00:00
|
|
|
vendorHash = "sha256-mwY1M81EWfbF/gYXQl5bcEXxN9N1npD+GgUSMc7gy90=";
|
2022-11-08 08:58:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-03-10 14:00:59 +00:00
|
|
|
description = "GTK4 Discord client in Go, attempt #4 (formerly gtkcord4)";
|
|
|
|
homepage = "https://github.com/diamondburned/dissent";
|
2022-11-08 08:58:58 +00:00
|
|
|
license = licenses.gpl3Only;
|
2024-03-10 14:00:59 +00:00
|
|
|
mainProgram = "dissent";
|
2023-04-29 09:26:44 +00:00
|
|
|
maintainers = with maintainers; [ hmenke urandom aleksana ];
|
2022-11-08 08:58:58 +00:00
|
|
|
};
|
|
|
|
}
|