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