nixpkgs/pkgs/applications/audio/gtkcord4/default.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 = "gtkcord4";
2024-02-15 00:10:23 +00:00
version = "0.0.19";
2022-11-08 08:58:58 +00:00
src = fetchFromGitHub {
owner = "diamondburned";
repo = pname;
rev = "v${version}";
2024-02-15 00:10:23 +00:00
hash = "sha256-TOrAUTYS4J4W1wZvP1TxZf5Nel29YCPoWPN7GYNomkc=";
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 = ''
2023-10-06 14:59:53 +00:00
install -D -m 444 -t $out/share/applications nix/so.libdb.gtkcord4.desktop
install -D -m 444 internal/icons/hicolor/scalable/apps/logo.svg $out/share/icons/hicolor/scalable/apps/gtkcord4.svg
'';
2024-02-15 00:10:23 +00:00
vendorHash = "sha256-dJm+v7/2+TQWoU7G1uOpie6KN5W0JqfLU4mF8mghV4A=";
2022-11-08 08:58:58 +00:00
meta = with lib; {
description = "GTK4 Discord client in Go, attempt #4";
2022-11-08 08:58:58 +00:00
homepage = "https://github.com/diamondburned/gtkcord4";
license = licenses.gpl3Only;
mainProgram = "gtkcord4";
2023-04-29 09:26:44 +00:00
maintainers = with maintainers; [ hmenke urandom aleksana ];
2022-11-08 08:58:58 +00:00
};
}