nixpkgs/pkgs/by-name/in/invidious-router/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
805 B
Nix
Raw Normal View History

2024-02-25 17:05:23 +01:00
{
lib,
buildGo122Module,
fetchFromGitLab,
}: let
2024-03-12 18:22:00 +01:00
version = "1.1";
2024-02-25 17:05:23 +01:00
in
buildGo122Module {
pname = "invidious-router";
inherit version;
src = fetchFromGitLab {
owner = "gaincoder";
repo = "invidious-router";
rev = version;
2024-03-12 18:22:00 +01:00
hash = "sha256-t8KQqMPkBbVis1odDcSu+H0uvyvoFqCmtWoHqVRxmfc=";
2024-02-25 17:05:23 +01:00
};
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";
};
}