2022-12-02 08:20:57 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
2023-02-09 11:40:11 +00:00
|
|
|
, gst_all_1
|
2022-12-02 08:20:57 +00:00
|
|
|
, lib
|
2022-12-28 21:21:41 +00:00
|
|
|
, libadwaita
|
2023-02-09 11:40:11 +00:00
|
|
|
, libcanberra-gtk3
|
2022-12-02 08:20:57 +00:00
|
|
|
, pkg-config
|
2023-02-09 11:40:11 +00:00
|
|
|
, sound-theme-freedesktop
|
2022-12-17 10:02:37 +00:00
|
|
|
, wrapGAppsHook4
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "dissent";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.0.25";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "diamondburned";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "dissent";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-ysI7zgducK52XbSzsaCnffSC9BRd/aaybMif/GkkhcI=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
pkg-config
|
2022-12-17 10:02:37 +00:00
|
|
|
wrapGAppsHook4
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-02-09 11:40:11 +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
|
2024-06-20 14:57:18 +00:00
|
|
|
libadwaita
|
2023-02-09 11:40:11 +00:00
|
|
|
libcanberra-gtk3
|
|
|
|
sound-theme-freedesktop
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
postInstall = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
install -D -m 444 -t $out/share/applications nix/so.libdb.dissent.desktop
|
2024-06-20 14:57:18 +00:00
|
|
|
install -D -m 444 -t $out/share/icons/hicolor/scalable/apps internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg
|
|
|
|
install -D -m 444 -t $out/share/icons/hicolor/symbolic/apps internal/icons/symbolic/apps/so.libdb.dissent-symbolic.svg
|
|
|
|
install -D -m 444 -t $out/share/metainfo so.libdb.dissent.metainfo.xml
|
|
|
|
install -D -m 444 -t $out/share/dbus-1/services nix/so.libdb.dissent.service
|
2022-12-28 21:21:41 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-qBgj3h+WKWxVahRXyO/w2zGY4UCVkjP7XKFk/9GOFqs=";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "A third-party Discord client designed for a smooth, native experience (formerly gtkcord4)";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/diamondburned/dissent";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = with licenses; [ gpl3Plus cc0 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dissent";
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ hmenke urandom aleksana ];
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
}
|