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

43 lines
1.0 KiB
Nix
Raw Normal View History

{ 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
doCheck = false;
2020-06-03 10:53:38 +01: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 13:17:55 +01: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
}