2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, olm, makeDesktopItem }:
|
2018-05-14 18:18:19 +01:00
|
|
|
|
2019-06-28 13:17:55 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gomuks";
|
2021-01-12 13:51:03 +00:00
|
|
|
version = "0.2.2";
|
2018-05-14 18:18:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tulir";
|
2019-06-28 13:17:55 +01:00
|
|
|
repo = pname;
|
2021-01-12 13:51:03 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "169xyd44jyfh5njwmhsmkah8njfgnp9q9c2b13p0ry5saicwm5h5";
|
2018-05-14 18:18:19 +01:00
|
|
|
};
|
|
|
|
|
2021-01-12 13:51:03 +00:00
|
|
|
vendorSha256 = "1l8qnz0qy90zpywfx7pbkqpxg7rkvc9j622zcmkf38kdc1z6w20a";
|
2020-06-03 10:53:38 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-03 10:53:38 +01:00
|
|
|
buildInputs = [ olm ];
|
2020-04-03 09:22:45 +01:00
|
|
|
|
|
|
|
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/*
|
|
|
|
'';
|
2019-06-28 13:17:55 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-28 13:17:55 +01:00
|
|
|
homepage = "https://maunium.net/go/gomuks/";
|
2018-05-14 18:18:19 +01:00
|
|
|
description = "A terminal based Matrix client written in Go";
|
|
|
|
license = licenses.gpl3;
|
2020-02-19 12:44:21 +00:00
|
|
|
maintainers = with maintainers; [ tilpner emily ];
|
2018-05-14 18:18:19 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2020-06-03 10:53:38 +01:00
|
|
|
}
|