about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2020-04-05 22:23:45 -0700
committerGitHub <noreply@github.com>2020-04-05 22:23:45 -0700
commit1e0f8e421ca7567fdf8e97e732cf9c54667e1da3 (patch)
tree9c579379a1b80649daa085363d4715dd8a15455b
parent92ab349a702f1322f9bd829abe156e93a436dd73 (diff)
parente1d24414682c75390c219ce7acf61bf5bec5b153 (diff)
downloadnixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.tar
nixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.tar.gz
nixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.tar.bz2
nixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.tar.lz
nixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.tar.xz
nixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.tar.zst
nixlib-1e0f8e421ca7567fdf8e97e732cf9c54667e1da3.zip
Merge pull request #84171 from ehmry/gomuks
gomuks: 2020-02-19 -> 2020-03-20
-rw-r--r--pkgs/applications/networking/instant-messengers/gomuks/default.nix25
1 files changed, 20 insertions, 5 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gomuks/default.nix b/pkgs/applications/networking/instant-messengers/gomuks/default.nix
index a36f72c03d08..2962d190d369 100644
--- a/pkgs/applications/networking/instant-messengers/gomuks/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gomuks/default.nix
@@ -1,19 +1,34 @@
-{ stdenv, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, makeDesktopItem }:
 
 buildGoModule rec {
   pname = "gomuks";
-  version = "2020-02-19";
+  version = "2020-03-20";
 
   goPackagePath = "maunium.net/go/gomuks";
 
   src = fetchFromGitHub {
     owner = "tulir";
     repo = pname;
-    rev = "702592bf89dfcf1ec382c0a09d99318bce7a3943";
-    sha256 = "0g638q8ypkp6dbfy1s4hz798cpkld301f914il3yd70yf05vvysc";
+    rev = "bce30e32a049b3ee76081c8d3881a3820b0e7341";
+    sha256 = "0f7i88vrvl1xl4hmjplq3wwihqwijbgxy6nk5fkvc8pfmm5hsjcs";
   };
 
-  modSha256 = "03vbrh50pvx71rp6c23qc2sh0ir4jm1wl0gvi3z1c14ndzhsqky4";
+  modSha256 = "10w0bjhnf6bbqx5jbgfv2jxxyqswzx25p64kkjmvh5qamjzpbjz2";
+
+  postInstall = ''
+    cp -r ${
+      makeDesktopItem {
+        name = "net.maunium.gomuks.desktop";
+        exec = "@out@/bin/gomuks";
+        terminal = "true";
+        desktopName = "Gomuks";
+        genericName = "Matrix client";
+        categories = "Network;Chat";
+        comment = meta.description;
+      }
+    }/* $out/
+    substituteAllInPlace $out/share/applications/*
+  '';
 
   meta = with stdenv.lib; {
     homepage = "https://maunium.net/go/gomuks/";