about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/in/invidious-router/package.nix
blob: 112ca05a97c031c370e9d537c39363750652b65e (plain) (blame)
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
30
{
  lib,
  buildGo122Module,
  fetchFromGitLab,
}: let
  version = "1.1";
in
  buildGo122Module {
    pname = "invidious-router";
    inherit version;

    src = fetchFromGitLab {
      owner = "gaincoder";
      repo = "invidious-router";
      rev = version;
      hash = "sha256-t8KQqMPkBbVis1odDcSu+H0uvyvoFqCmtWoHqVRxmfc=";
    };

    vendorHash = "sha256-c03vYidm8SkoesRVQZdg/bCp9LIpdTmpXdfwInlHBKk=";

    doCheck = true;

    meta = {
      homepage = "https://gitlab.com/gaincoder/invidious-router";
      description = "A Go application that routes requests to different Invidious instances based on their health status and (optional) response time";
      license = with lib.licenses; [mit];
      maintainers = with lib.maintainers; [sils];
      mainProgram = "invidious-router";
    };
  }