nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2
3buildGoModule rec {
4 pname = "robustirc-bridge";
5 version = "1.8";
6
7 src = fetchFromGitHub {
8 owner = "robustirc";
9 repo = "bridge";
10 rev = "v${version}";
11 sha256 = "12jzil97147f978shdgm6whz7699db0shh0c1fzgrjh512dw502c";
12 };
13
14 vendorSha256 = "0lm8j2iz0yysgi0bbh78ca629kb6sxvyy9al3aj2587hpvy79q85";
15
16 postInstall = ''
17 install -D robustirc-bridge.1 $out/share/man/man1/robustirc-bridge.1
18 '';
19
20 passthru.tests.robustirc-bridge = nixosTests.robustirc-bridge;
21
22 meta = with lib; {
23 description = "Bridge to robustirc.net-IRC-Network";
24 homepage = "https://robustirc.net/";
25 license = licenses.bsd3;
26 maintainers = [ maintainers.hax404 ];
27 };
28}