gtkcord4: install desktop item and icons, optional libadwaita

This commit is contained in:
Henri Menke 2022-12-11 14:30:02 +01:00
parent 1b81002988
commit f2a5bc37a0
No known key found for this signature in database
GPG Key ID: FB7AD61E3D806382

View File

@ -7,8 +7,10 @@
, graphene
, gtk4
, lib
, libadwaita
, pango
, pkg-config
, withLibadwaita ? false
, wrapGAppsHook4
}:
@ -36,8 +38,18 @@ buildGoModule rec {
graphene
gtk4
pango
] ++ lib.optionals withLibadwaita [
libadwaita
];
tags = lib.optionals withLibadwaita [ "libadwaita" ];
postInstall = ''
install -D -m 444 -t $out/share/applications .nix/com.github.diamondburned.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
'';
vendorHash = "sha256-QZSjSk1xu5ZcrNEra5TxnUVvlQWb5/h31fm5Nc7WMoI=";
meta = with lib; {