about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/gotktrix
diff options
context:
space:
mode:
authorChuang Zhu <git@chuang.cz>2022-10-30 00:28:45 +0800
committerChuang Zhu <git@chuang.cz>2022-10-30 00:28:45 +0800
commita65d5339c50e79227b16b985d9c9a7a9a06f68f1 (patch)
tree44404d1027bb80d8e977a860d87aaf54abf617c9 /pkgs/applications/networking/instant-messengers/gotktrix
parentb8b9e1d64c431c77aedcc0e07336803c2aaf381d (diff)
gotktrix: 0.1.4 -> unstable-2022-09-29
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/gotktrix')
-rw-r--r--pkgs/applications/networking/instant-messengers/gotktrix/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gotktrix/default.nix b/pkgs/applications/networking/instant-messengers/gotktrix/default.nix
index d0f9f3d9e52ea..edcac90628481 100644
--- a/pkgs/applications/networking/instant-messengers/gotktrix/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gotktrix/default.nix
@@ -10,16 +10,16 @@
 
 buildGoModule rec {
   pname = "gotktrix";
-  version = "0.1.4";
+  version = "unstable-2022-09-29";
 
   src = fetchFromGitHub {
     owner = "diamondburned";
     repo = pname;
-    rev = "v${version}";
-    sha256 = "sha256-ZaE7L43fA9L5WbTAsBiIxlwYgjl1hMrtfrraAROz+7k=";
+    rev = "3d9e8ac4810f7cb9d9ead7b4b13ffa6f5da8927f"; # compound
+    sha256 = "sha256-VIV4vSntu3oCIE23f5fiYj8cxcKY1n4M4Xkf0MGhvxI=";
   };
 
-  vendorSha256 = "sha256-k6T44aH1NogyrbUnflfEHkp0zpOOH1YFly/X2kwbMzs=";
+  vendorSha256 = "sha256-R55tfTJL/bgNWTgmuBFRxIQleKS9zeDqvfez2VyzqjI=";
 
   buildInputs = [
     gtk4
@@ -32,8 +32,12 @@ buildGoModule rec {
   # Checking requires a working display
   doCheck = false;
 
-  postInstall = ''
+  postPatch = ''
+    sed -i '/DBusActivatable/d' .nix/com.github.diamondburned.gotktrix.desktop
     echo 'X-Purism-FormFactor=Workstation;Mobile;' >> .nix/com.github.diamondburned.gotktrix.desktop
+  '';
+
+  postInstall = ''
     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
   '';