2018-09-03 21:38:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, python3
|
2018-02-25 02:23:58 +00:00
|
|
|
, gettext, pkgconfig, desktop-file-utils, wrapGAppsHook
|
2016-05-23 19:08:28 +01:00
|
|
|
, appstream-glib, epoxy, glib, gtk3, mpv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnome-mpv-${version}";
|
2017-09-04 03:29:17 +01:00
|
|
|
version = "0.13";
|
2016-05-23 19:08:28 +01:00
|
|
|
|
2017-09-04 03:29:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gnome-mpv";
|
|
|
|
repo = "gnome-mpv";
|
|
|
|
rev = "0d73b33d60050fd32bf8fae77d831548970a0b69"; # upstream forgot to update appdata
|
|
|
|
# rev = "v${version}";
|
|
|
|
sha256 = "1cjhw3kz163iwj2japhnv354i1lr112xyyfkxw82cwy2554cfim4";
|
2016-05-23 19:08:28 +01:00
|
|
|
};
|
|
|
|
|
2018-09-03 21:38:13 +01:00
|
|
|
nativeBuildInputs = [ meson ninja python3 appstream-glib gettext pkgconfig desktop-file-utils wrapGAppsHook ];
|
2017-09-04 03:29:17 +01:00
|
|
|
buildInputs = [ epoxy glib gtk3 mpv ];
|
2016-05-23 19:08:28 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-04 03:29:17 +01:00
|
|
|
postPatch = ''
|
2018-09-03 21:38:13 +01:00
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
patchShebangs src/generate_authors.py
|
2017-09-04 03:29:17 +01:00
|
|
|
sed -i '/gtk-update-icon-cache/s/^/#/' meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2016-05-23 19:08:28 +01: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.
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/gnome-mpv/gnome-mpv;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|