nixpkgs/pkgs/applications/video/gnomecast/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, python3Packages, fetchFromGitHub, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook }:
with python3Packages;
buildPythonApplication rec {
pname = "gnomecast";
version = "unstable-2022-04-23";
src = fetchFromGitHub {
owner = "keredson";
repo = "gnomecast";
rev = "d42d8915838b01c5cadacb322909e08ffa455d4f";
sha256 = "sha256-CJpbBuRzEjWb8hsh3HMW4bZA7nyDAwjrERCS5uGdwn8=";
};
nativeBuildInputs = [ wrapGAppsHook ];
propagatedBuildInputs = [
pychromecast
bottle
pycaption
paste
html5lib
pygobject3
dbus-python
gtk3
gobject-introspection
];
# NOTE: gdk-pixbuf setup hook does not run with strictDeps
# https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-hooks-gobject-introspection
strictDeps = false;
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
'';
2021-01-09 16:08:31 +00:00
# no tests
doCheck = false;
meta = with lib; {
description = "A native Linux GUI for Chromecasting local files";
homepage = "https://github.com/keredson/gnomecast";
license = with licenses; [ gpl3 ];
2021-01-05 23:14:41 +00:00
broken = stdenv.isDarwin;
2023-11-27 01:17:53 +00:00
mainProgram = "gnomecast";
};
}