Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
xorg,
|
|
libglvnd,
|
|
pkg-config,
|
|
withGui ? true,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go2tv" + lib.optionalString (!withGui) "-lite";
|
|
version = "1.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alexballas";
|
|
repo = "go2tv";
|
|
tag = "v${version}";
|
|
hash = "sha256-Ic4Kcc5Vx1QXFt28o5ItGwcvsKCB2HdZvILPRoEKbgI=";
|
|
};
|
|
|
|
vendorHash = "sha256-xp/zdkNV4z3rQMV0b/7TD+ApiaDWxR/aqOKvakGKAcI=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
xorg.libX11
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libXinerama
|
|
xorg.libXi
|
|
xorg.libXext
|
|
xorg.libXxf86vm
|
|
libglvnd
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-linkmode=external"
|
|
];
|
|
|
|
# conditionally build with GUI or not (go2tv or go2tv-lite sub-packages)
|
|
subPackages = [ "cmd/${pname}" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Cast media files to UPnP/DLNA Media Renderers and Smart TVs";
|
|
homepage = "https://github.com/alexballas/go2tv";
|
|
changelog = "https://github.com/alexballas/go2tv/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ gdamjan ];
|
|
mainProgram = pname;
|
|
};
|
|
}
|