about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-06-17 22:02:15 +0200
committerGitHub <noreply@github.com>2022-06-17 22:02:15 +0200
commit713fe88df98280f4b9fe000e6b291c104ac6fb35 (patch)
tree1244d6f51a24f97f4bd4df0b9f771f103d30f01c /pkgs/applications/networking/instant-messengers
parenteb9fbec6ad900556771737ecba3a8c99a57babff (diff)
parentbdf134d02e5d1ebb9d04b42712c86c106f262d29 (diff)
Merge pull request #177838 from chuangzhu/gotktrix
gotktrix: add desktop file
Diffstat (limited to 'pkgs/applications/networking/instant-messengers')
-rw-r--r--pkgs/applications/networking/instant-messengers/gotktrix/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gotktrix/default.nix b/pkgs/applications/networking/instant-messengers/gotktrix/default.nix
index 9cab98156c81c..bd0da749e0961 100644
--- a/pkgs/applications/networking/instant-messengers/gotktrix/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gotktrix/default.nix
@@ -32,6 +32,12 @@ buildGoModule rec {
   # Checking requires a working display
   doCheck = false;
 
+  postInstall = ''
+    echo 'X-Purism-FormFactor=Workstation;Mobile;' >> .nix/com.github.diamondburned.gotktrix.desktop
+    install -Dm444 .nix/com.github.diamondburned.gotktrix.desktop -t $out/share/applications/
+    install -Dm444 .github/logo-256.png -T $out/share/icons/hicolor/256x256/apps/gotktrix.png
+  '';
+
   meta = with lib; {
     description = "Matrix client written in Go using GTK4";
     homepage = "https://github.com/diamondburned/gotktrix";