mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
5be7d1d238
* New Logo! * Added relative time and end time next to the slider bar * Various fixes and API improvements * Fix Android 13 issue where device discovery is not working https://github.com/alexballas/go2tv/releases/tag/v1.15.0
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, Carbon
|
|
, Cocoa
|
|
, Kernel
|
|
, UserNotifications
|
|
, xorg
|
|
, libglvnd
|
|
, pkg-config
|
|
, withGui ? true
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go2tv" + lib.optionalString (!withGui) "-lite";
|
|
version = "1.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alexballas";
|
|
repo = "go2tv";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5GOhTDlUpzInMm8hVcBjbf1CXRw2GQITRtj6UaxYHtE=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
xorg.libX11
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libXinerama
|
|
xorg.libXi
|
|
xorg.libXext
|
|
xorg.libXxf86vm
|
|
libglvnd
|
|
] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa Kernel UserNotifications ];
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-linkmode=external"
|
|
];
|
|
|
|
# conditionally build with GUI or not (go2tv or go2tv-lite sub-packages)
|
|
subPackages = [ "cmd/${pname}" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Cast media files to UPnP/DLNA Media Renderers and Smart TVs";
|
|
homepage = "https://github.com/alexballas/go2tv";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gdamjan ];
|
|
};
|
|
}
|