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

45 lines
1.1 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-06-24 17:33:46 +00:00
version = "0.1.2";
2018-05-14 17:18:19 +00:00
goPackagePath = "maunium.net/go/gomuks";
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-06-24 17:33:46 +00:00
sha256 = "11bainw4w9fdrhv2jm0j9fw0f7r4cxlblyazbhckgr4j9q900383";
2018-05-14 17:18:19 +00:00
};
2020-06-24 17:33:46 +00:00
vendorSha256 = "11rk7pma6dr6fsyz8hpjyr7nc2c7ichh5m7ds07m89gzk6ar55gb";
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
}