Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
2.0 KiB
Nix
Raw Permalink Normal View History

2022-11-08 08:58:58 +00:00
{
buildGoModule,
fetchFromGitHub,
gobject-introspection,
2023-02-02 11:06:59 +01:00
gst_all_1,
2022-11-08 08:58:58 +00:00
lib,
libadwaita,
2023-02-02 11:06:59 +01:00
libcanberra-gtk3,
2022-11-08 08:58:58 +00:00
pkg-config,
2023-02-02 11:06:59 +01:00
sound-theme-freedesktop,
2024-09-10 21:18:37 +09:00
libspelling,
gtksourceview5,
wrapGAppsHook4,
2022-11-08 08:58:58 +00:00
}:
buildGoModule rec {
pname = "dissent";
2025-07-03 12:56:12 +00:00
version = "0.0.35";
2022-11-08 08:58:58 +00:00
src = fetchFromGitHub {
owner = "diamondburned";
repo = "dissent";
tag = "v${version}";
2025-07-03 12:56:12 +00:00
hash = "sha256-cmp+oAUV+Oehs/kz6DRW57NgegBWbFVT/7xfY7CbcZM=";
2022-11-08 08:58:58 +00:00
};
nativeBuildInputs = [
gobject-introspection
pkg-config
wrapGAppsHook4
2022-11-08 08:58:58 +00:00
];
buildInputs = [
2023-02-02 11:06:59 +01: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-15 14:22:00 +08:00
libadwaita
2023-02-02 11:06:59 +01:00
libcanberra-gtk3
sound-theme-freedesktop
# gotk4-spelling fails to build with libspelling >= 0.3.0
# https://github.com/diamondburned/gotk4-spelling/issues/1
libspelling
2024-09-10 21:18:37 +09:00
gtksourceview5
2022-11-08 08:58:58 +00:00
];
postInstall = ''
2024-09-18 16:33:55 +09:00
substituteInPlace nix/so.libdb.dissent.service \
--replace-warn "/usr/bin/dissent" "$out/bin/dissent"
install -D -m 444 -t $out/share/applications nix/so.libdb.dissent.desktop
2024-06-15 14:22:00 +08: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
'';
2025-07-03 12:56:12 +00:00
vendorHash = "sha256-AhzM0wu2wwwG/sDY+r2wgmotK4zA5u6vzq4KoPMLkL0=";
2022-11-08 08:58:58 +00:00
meta = {
description = "Third-party Discord client designed for a smooth, native experience (formerly gtkcord4)";
homepage = "https://github.com/diamondburned/dissent";
license = with lib.licenses; [
2024-06-15 14:22:00 +08:00
gpl3Plus
cc0
];
mainProgram = "dissent";
maintainers = with lib.maintainers; [
2023-04-29 17:26:44 +08:00
hmenke
urandom
aleksana
];
2022-11-08 08:58:58 +00:00
};
}