@@ -0,0 +1,36 @@
1+{ stdenv, fetchurl
2+, intltool, pkgconfig, wrapGAppsHook
3+, appstream-glib, epoxy, glib, gtk3, mpv
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "gnome-mpv-${version}";
8+ version = "0.9";
9+
10+ src = fetchurl {
11+ sha256 = "06pgxl6f3kkgxv8nlmyl7gy3pg55sqf8vgr8m6426mlpm4p3qdn0";
12+ url = "https://github.com/gnome-mpv/gnome-mpv/releases/download/v${version}/${name}.tar.xz";
13+ };
14+
15+ nativeBuildInputs = [ intltool pkgconfig wrapGAppsHook ];
16+ buildInputs = [ appstream-glib epoxy glib.dev gtk3 mpv ];
17+
18+ NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
19+
20+ enableParallelBuilding = true;
21+
22+ doCheck = true;
23+
24+ meta = with stdenv.lib; {
25+ description = "Simple GTK+ frontend for the mpv video player";
26+ longDescription = ''
27+ GNOME MPV interacts with mpv via the client API exported by libmpv,
28+ allowing access to mpv's powerful playback capabilities through an
29+ easy-to-use user interface.
30+ '';
31+ homepage = https://github.com/gnome-mpv/gnome-mpv;
32+ license = licenses.gpl3Plus;
33+ platforms = platforms.linux;
34+ maintainers = with maintainers; [ nckx ];
35+ };
36+}