chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / di / dissent / package.nix
blob36708fb39215b24ca29b466dc90aff1d348e9eda
1 { buildGoModule
2 , fetchFromGitHub
3 , gobject-introspection
4 , gst_all_1
5 , lib
6 , libadwaita
7 , libcanberra-gtk3
8 , pkg-config
9 , sound-theme-freedesktop
10 , libspelling
11 , gtksourceview5
12 , wrapGAppsHook4
15 buildGoModule rec {
16   pname = "dissent";
17   version = "0.0.30";
19   src = fetchFromGitHub {
20     owner = "diamondburned";
21     repo = "dissent";
22     rev = "v${version}";
23     hash = "sha256-wBDN9eUPOr9skTTgA0ea50Byta3qVr1loRrfMWhnxP8=";
24   };
26   nativeBuildInputs = [
27     gobject-introspection
28     pkg-config
29     wrapGAppsHook4
30   ];
32   buildInputs = [
33     # Optional according to upstream but required for sound and video
34     gst_all_1.gst-plugins-bad
35     gst_all_1.gst-plugins-base
36     gst_all_1.gst-plugins-good
37     gst_all_1.gst-plugins-ugly
38     gst_all_1.gstreamer
39     libadwaita
40     libcanberra-gtk3
41     sound-theme-freedesktop
42     libspelling
43     gtksourceview5
44   ];
46   postInstall = ''
47     substituteInPlace nix/so.libdb.dissent.service \
48       --replace-warn "/usr/bin/dissent" "$out/bin/dissent"
49     install -D -m 444 -t $out/share/applications nix/so.libdb.dissent.desktop
50     install -D -m 444 -t $out/share/icons/hicolor/scalable/apps internal/icons/hicolor/scalable/apps/so.libdb.dissent.svg
51     install -D -m 444 -t $out/share/icons/hicolor/symbolic/apps internal/icons/symbolic/apps/so.libdb.dissent-symbolic.svg
52     install -D -m 444 -t $out/share/metainfo so.libdb.dissent.metainfo.xml
53     install -D -m 444 -t $out/share/dbus-1/services nix/so.libdb.dissent.service
54   '';
56   vendorHash = "sha256-TXqdO+DjnDD/+zwm3gK3+sxMTEVSHuceKz4ZJVH5Y34=";
58   meta = with lib; {
59     description = "A third-party Discord client designed for a smooth, native experience (formerly gtkcord4)";
60     homepage = "https://github.com/diamondburned/dissent";
61     license = with licenses; [ gpl3Plus cc0 ];
62     mainProgram = "dissent";
63     maintainers = with maintainers; [ hmenke urandom aleksana ];
64   };