nixpkgs/pkgs/by-name/di/dissent/package.nix

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

69 lines
1.5 KiB
Nix
Raw Normal View History

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
, 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
, wrapGAppsHook4
2022-11-08 08:58:58 +00:00
}:
buildGoModule rec {
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";
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
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
libadwaita
2022-11-08 08:58:58 +00:00
];
postInstall = ''
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
'';
vendorHash = "sha256-mwY1M81EWfbF/gYXQl5bcEXxN9N1npD+GgUSMc7gy90=";
2022-11-08 08:58:58 +00:00
meta = with lib; {
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;
mainProgram = "dissent";
2023-04-29 09:26:44 +00:00
maintainers = with maintainers; [ hmenke urandom aleksana ];
2022-11-08 08:58:58 +00:00
};
}