forked from mirrors/nixpkgs
Merge pull request #199231 from gdamjan/go2tv
This commit is contained in:
commit
e27dcca80b
|
@ -4949,6 +4949,13 @@
|
|||
githubId = 37017396;
|
||||
name = "gbtb";
|
||||
};
|
||||
gdamjan = {
|
||||
email = "gdamjan@gmail.com";
|
||||
matrix = "@gdamjan:spodeli.org";
|
||||
github = "gdamjan";
|
||||
githubId = 81654;
|
||||
name = "Damjan Georgievski";
|
||||
};
|
||||
gdinh = {
|
||||
email = "nix@contact.dinh.ai";
|
||||
github = "gdinh";
|
||||
|
|
57
pkgs/applications/video/go2tv/default.nix
Normal file
57
pkgs/applications/video/go2tv/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, Carbon
|
||||
, Cocoa
|
||||
, Kernel
|
||||
, UserNotifications
|
||||
, xorg
|
||||
, libglvnd
|
||||
, pkg-config
|
||||
, withGui ? true
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go2tv" + lib.optionalString (!withGui) "-lite";
|
||||
version = "1.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alexballas";
|
||||
repo = "go2tv";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ZHKfBKOX3/kVR6Nc+jSmLgfmpihc6QMb6NvTFlsBr5E=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-msXfXFWXyZeT6zrRPZkBV7PEyPqYkx+JlpTWUwgFavI=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -2704,6 +2704,11 @@ with pkgs;
|
|||
|
||||
gmnitohtml = callPackage ../applications/misc/gmnitohtml { };
|
||||
|
||||
go2tv = darwin.apple_sdk_11_0.callPackage ../applications/video/go2tv {
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) Carbon Cocoa Kernel UserNotifications;
|
||||
};
|
||||
go2tv-lite = go2tv.override { withGui = false; };
|
||||
|
||||
goimapnotify = callPackage ../tools/networking/goimapnotify { };
|
||||
|
||||
gojsontoyaml = callPackage ../development/tools/gojsontoyaml { };
|
||||
|
|
Loading…
Reference in a new issue