2023-04-11 19:38:01 +00:00
|
|
|
{ stdenv, lib, python3Packages, fetchFromGitHub, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook }:
|
2018-07-15 18:42:44 +00:00
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gnomecast";
|
2023-04-11 19:38:01 +00:00
|
|
|
version = "unstable-2022-04-23";
|
2018-07-15 18:42:44 +00:00
|
|
|
|
2023-04-11 19:38:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keredson";
|
|
|
|
repo = "gnomecast";
|
|
|
|
rev = "d42d8915838b01c5cadacb322909e08ffa455d4f";
|
|
|
|
sha256 = "sha256-CJpbBuRzEjWb8hsh3HMW4bZA7nyDAwjrERCS5uGdwn8=";
|
2018-07-15 18:42:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
|
|
|
propagatedBuildInputs = [
|
2023-04-11 19:38:01 +00:00
|
|
|
pychromecast
|
|
|
|
bottle
|
|
|
|
pycaption
|
|
|
|
paste
|
|
|
|
html5lib
|
|
|
|
pygobject3
|
|
|
|
dbus-python
|
|
|
|
gtk3
|
|
|
|
gobject-introspection
|
2018-07-15 18:42:44 +00:00
|
|
|
];
|
|
|
|
|
2021-02-07 19:57:34 +00:00
|
|
|
# NOTE: gdk-pixbuf setup hook does not run with strictDeps
|
|
|
|
# https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-hooks-gobject-introspection
|
|
|
|
strictDeps = false;
|
|
|
|
|
2018-07-15 18:42:44 +00:00
|
|
|
preFixup = ''
|
2021-05-11 19:58:23 +00:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
|
2018-07-15 18:42:44 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-09 16:08:31 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-07-15 18:42:44 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A native Linux GUI for Chromecasting local files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/keredson/gnomecast";
|
2018-07-15 18:42:44 +00:00
|
|
|
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";
|
2018-07-15 18:42:44 +00:00
|
|
|
};
|
|
|
|
}
|