nixpkgs/pkgs/applications/video/gnome-mpv/default.nix

49 lines
1.5 KiB
Nix
Raw Normal View History

2019-06-16 03:15:10 -07:00
{ stdenv, fetchFromGitHub, fetchpatch, meson, ninja, python3
, gettext, pkgconfig, desktop-file-utils, wrapGAppsHook
2016-05-23 11:08:28 -07:00
, appstream-glib, epoxy, glib, gtk3, mpv
}:
stdenv.mkDerivation rec {
2019-06-15 14:57:09 -07:00
pname = "gnome-mpv";
version = "0.16";
2016-05-23 11:08:28 -07:00
2017-09-03 19:29:17 -07:00
src = fetchFromGitHub {
2019-06-15 14:57:09 -07:00
owner = "celluloid-player";
repo = "celluloid";
rev = "v${version}";
sha256 = "1fj5mr1dwd07jpnigk7z85xdm6yaf7spbvf60aj3mz12m05b1b2w";
2016-05-23 11:08:28 -07:00
};
nativeBuildInputs = [ meson ninja python3 appstream-glib gettext pkgconfig desktop-file-utils wrapGAppsHook ];
2017-09-03 19:29:17 -07:00
buildInputs = [ epoxy glib gtk3 mpv ];
2016-05-23 11:08:28 -07:00
2019-06-15 14:57:09 -07:00
patches = [
2019-06-16 03:15:10 -07:00
# fix appstream validation in sandbox
# https://github.com/celluloid-player/celluloid/pull/437
(fetchpatch {
url = https://github.com/celluloid-player/celluloid/commit/5a0b2e892bb715278d309c859a7e521d64433d85.patch;
sha256 = "0naci8lr6128yilal39h46yvq9x3la7g7fhvr5xlwyh30iqrbm3i";
})
2019-06-15 14:57:09 -07:00
];
2016-05-23 11:08:28 -07:00
2017-09-03 19:29:17 -07:00
postPatch = ''
patchShebangs meson_post_install.py
patchShebangs src/generate_authors.py
2017-09-03 19:29:17 -07:00
sed -i '/gtk-update-icon-cache/s/^/#/' meson_post_install.py
'';
2016-05-23 11:08:28 -07:00
doCheck = true;
meta = with stdenv.lib; {
description = "Simple GTK+ frontend for the mpv video player";
longDescription = ''
GNOME MPV interacts with mpv via the client API exported by libmpv,
allowing access to mpv's powerful playback capabilities through an
easy-to-use user interface.
'';
2019-06-15 14:57:09 -07:00
homepage = "https://github.com/celluloid-player/celluloid";
2016-05-23 11:08:28 -07:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}