depot/third_party/nixpkgs/pkgs/by-name/ht/http3-ytproxy/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
907 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, libwebp
}:
buildGoModule rec {
pname = "http3-ytproxy";
version = "unstable-2022-07-03";
src = fetchFromGitHub {
owner = "TeamPiped";
repo = pname;
rev = "4059da180bb9d7b0de10c1a041bd0e134f1b6408";
hash = "sha256-ilIOkZ9lcuSigh/mMU7IGpWlFMFb2/Y11ri3659S8+I=";
};
patches = [
# this patch was created by updating the quic-go dependency, bumping the go version
# and running `go mod tidy`
./dependencies.patch
];
vendorHash = "sha256-17y+kxlLSqCFoxinNNKzg7IqGpbiv0IBsUuC9EC8xnk=";
buildInputs = [ libwebp ];
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "YouTube traffic proxy for video playback and images";
homepage = "https://github.com/TeamPiped/http3-ytproxy";
license = licenses.agpl3Only;
maintainers = with maintainers; [ _999eagle ];
mainProgram = "http3-ytproxy";
};
}