nixpkgs/pkgs/applications/networking/instant-messengers/gomuks/default.nix

43 lines
1.0 KiB
Nix
Raw Normal View History

2020-06-03 09:53:38 +00:00
{ stdenv, buildGoModule, fetchFromGitHub, olm, makeDesktopItem }:
2018-05-14 17:18:19 +00:00
2019-06-28 12:17:55 +00:00
buildGoModule rec {
pname = "gomuks";
2020-10-25 15:03:21 +00:00
version = "0.2.1";
2018-05-14 17:18:19 +00:00
src = fetchFromGitHub {
owner = "tulir";
2019-06-28 12:17:55 +00:00
repo = pname;
2020-06-03 09:53:38 +00:00
rev = "v" + version;
2020-10-25 15:03:21 +00:00
sha256 = "0xa4ch4p48w6sd0f4s1sp0hl1w4fvzhff7w2ar19ki0ydy5g368n";
2018-05-14 17:18:19 +00:00
};
2020-10-25 15:03:21 +00:00
vendorSha256 = "1rhvwk8bdbbffhx2d03a8p9jc5c8v3pi7kw1dmyyngz6p7wq1g0x";
2020-06-03 09:53:38 +00:00
doCheck = false;
2020-06-03 09:53:38 +00:00
buildInputs = [ olm ];
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 12:17:55 +00:00
2018-05-14 17:18:19 +00:00
meta = with stdenv.lib; {
2019-06-28 12:17:55 +00:00
homepage = "https://maunium.net/go/gomuks/";
2018-05-14 17:18:19 +00: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 17:18:19 +00:00
platforms = platforms.unix;
};
2020-06-03 09:53:38 +00:00
}