4 , gobject-introspection
10 , sound-theme-freedesktop
17 libspelling_2_1 = libspelling.overrideAttrs {
20 src = fetchFromGitLab {
21 domain = "gitlab.gnome.org";
24 rev = "refs/tags/0.2.1";
25 hash = "sha256-0OGcwPGWtYYf0XmvzXEaQgebBOW/6JWcDuF4MlQjCZQ=";
33 src = fetchFromGitHub {
34 owner = "diamondburned";
37 hash = "sha256-mI0rZ7w2a6fzELYRHgeekTWYDaQGcDYectRWUdOmlYc=";
47 # Optional according to upstream but required for sound and video
48 gst_all_1.gst-plugins-bad
49 gst_all_1.gst-plugins-base
50 gst_all_1.gst-plugins-good
51 gst_all_1.gst-plugins-ugly
55 sound-theme-freedesktop
56 # gotk4-spelling fails to build with libspelling >= 0.3.0
57 # https://github.com/diamondburned/gotk4-spelling/issues/1
63 substituteInPlace nix/so.libdb.dissent.service \
64 --replace-warn "/usr/bin/dissent" "$out/bin/dissent"
65 install -D -m 444 -t $out/share/applications nix/so.libdb.dissent.desktop
66 install -D -m 444 -t $out/share/icons/hicolor/scalable/apps internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg
67 install -D -m 444 -t $out/share/icons/hicolor/symbolic/apps internal/icons/symbolic/apps/so.libdb.dissent-symbolic.svg
68 install -D -m 444 -t $out/share/metainfo so.libdb.dissent.metainfo.xml
69 install -D -m 444 -t $out/share/dbus-1/services nix/so.libdb.dissent.service
72 vendorHash = "sha256-JISIS8k/veBAqZ0DlxVBrc+25IVM6BpY4eE5uxsjo+Y=";
75 description = "A third-party Discord client designed for a smooth, native experience (formerly gtkcord4)";
76 homepage = "https://github.com/diamondburned/dissent";
77 license = with licenses; [ gpl3Plus cc0 ];
78 mainProgram = "dissent";
79 maintainers = with maintainers; [ hmenke urandom aleksana ];