nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitLab,
5 nix-update-script,
6}:
7let
8 version = "1.2";
9in
10buildGoModule {
11 pname = "invidious-router";
12 inherit version;
13
14 src = fetchFromGitLab {
15 owner = "gaincoder";
16 repo = "invidious-router";
17 tag = version;
18 hash = "sha256-YcMtZq4VMHr6XqHcsAAEmMF6jF1j1wb7Lq4EK42QAEo=";
19 };
20
21 vendorHash = "sha256-c03vYidm8SkoesRVQZdg/bCp9LIpdTmpXdfwInlHBKk=";
22
23 passthru.updateScript = nix-update-script { };
24
25 doCheck = true;
26
27 meta = {
28 homepage = "https://gitlab.com/gaincoder/invidious-router";
29 description = "Go application that routes requests to different Invidious instances based on their health status and (optional) response time";
30 license = with lib.licenses; [ mit ];
31 maintainers = with lib.maintainers; [ sils ];
32 mainProgram = "invidious-router";
33 };
34}