aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/servers/irc/robustirc-bridge/default.nix
blob: 84b80203f57cc3972e1fc7aa1d064979689d4735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, 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 stdenv.lib; {
    description = "Bridge to robustirc.net-IRC-Network";
    homepage = "https://robustirc.net/";
    license = licenses.bsd3;
    maintainers = [ maintainers.hax404 ];
    platforms = platforms.all;
  };
}