nixpkgs/pkgs/applications/audio/gtkcord4/default.nix

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

73 lines
1.6 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
, withLibadwaita ? false
, wrapGAppsHook4
2022-11-08 08:58:58 +00:00
}:
buildGoModule rec {
pname = "gtkcord4";
2023-02-10 20:36:00 +00:00
version = "0.0.9";
2022-11-08 08:58:58 +00:00
src = fetchFromGitHub {
owner = "diamondburned";
repo = pname;
rev = "v${version}";
2023-02-10 20:36:00 +00:00
hash = "sha256-55mS+hrhLLRkhgih5lvdM9Xka+WKg2iliFm6TYF6n3w=";
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
] ++ lib.optionals withLibadwaita [
libadwaita
2022-11-08 08:58:58 +00:00
];
tags = lib.optionals withLibadwaita [ "libadwaita" ];
postInstall = ''
2023-02-02 10:06:59 +00:00
install -D -m 444 -t $out/share/applications nix/xyz.diamondb.gtkcord4.desktop
install -D -m 444 internal/icons/svg/logo.svg $out/share/icons/hicolor/scalable/apps/gtkcord4.svg
install -D -m 444 internal/icons/png/logo.png $out/share/icons/hicolor/256x256/apps/gtkcord4.png
'';
2023-02-10 20:36:00 +00:00
vendorHash = "sha256-IQpokMeo46vZIdVA1F7JILXCN9bUqTMOCa/SQ0JSjaM=";
2022-11-08 08:58:58 +00:00
meta = with lib; {
description = "GTK4 Discord client in Go, attempt #4.";
homepage = "https://github.com/diamondburned/gtkcord4";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hmenke urandom ];
2022-11-08 08:58:58 +00:00
};
}