16 pname = "go2tv" + lib.optionalString (!withGui) "-lite";
19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 hash = "sha256-h0q2VhnU7CPCD0Co9rLPmGh4BK4eP5QUMep7AaJ3weY=";
26 vendorHash = "sha256-+sASY+HosTMMVHHPwVw8nO+/72s2A1EpuTMHJXhHtnc=";
28 nativeBuildInputs = [ pkg-config ];
39 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa Kernel UserNotifications ];
47 # conditionally build with GUI or not (go2tv or go2tv-lite sub-packages)
48 subPackages = [ "cmd/${pname}" ];
53 description = "Cast media files to UPnP/DLNA Media Renderers and Smart TVs";
54 homepage = "https://github.com/alexballas/go2tv";
55 changelog = "https://github.com/alexballas/go2tv/releases/tag/v${version}";
56 license = licenses.mit;
57 maintainers = with maintainers; [ gdamjan ];
58 mainProgram = "go2tv";