nixpkgs-suyu/pkgs/servers/irc/robustirc-bridge/default.nix
Arnout Engelen 1be3d412c0
treewide: go: inherit platforms instead of using platforms.all
`buildGoModule` and `buildGoPackage` by default inherit the `platforms`
from go. That seems better than explicitly configuring `platforms.all`.

There are also many packages that specify 'linux + darwin' - this is
even suggested in the documentation. We might also want to update those,
but let's do the noncontroversial change first.
2021-04-26 08:59:56 +02:00

28 lines
732 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "robustirc-bridge";
version = "1.8";
src = fetchFromGitHub {
owner = "robustirc";
repo = "bridge";
rev = "v${version}";
sha256 = "12jzil97147f978shdgm6whz7699db0shh0c1fzgrjh512dw502c";
};
vendorSha256 = "0lm8j2iz0yysgi0bbh78ca629kb6sxvyy9al3aj2587hpvy79q85";
postInstall = ''
install -D robustirc-bridge.1 $out/share/man/man1/robustirc-bridge.1
'';
passthru.tests.robustirc-bridge = nixosTests.robustirc-bridge;
meta = with lib; {
description = "Bridge to robustirc.net-IRC-Network";
homepage = "https://robustirc.net/";
license = licenses.bsd3;
maintainers = [ maintainers.hax404 ];
};
}