2021-01-17 02:09:27 +00:00
|
|
|
{lib, stdenv, substituteAll, fetchFromGitHub, pkg-config, gettext, glib, gtk3, gmtk, dbus, dbus-glib
|
2018-01-02 07:50:11 +00:00
|
|
|
, libnotify, libpulseaudio, mplayer, wrapGAppsHook }:
|
2009-07-15 21:34:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-mplayer";
|
2018-01-02 07:50:11 +00:00
|
|
|
version = "1.0.9";
|
2009-07-15 21:34:08 +01:00
|
|
|
|
2018-01-02 07:50:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdekorte";
|
|
|
|
repo = "gnome-mplayer";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0qvy9fllvg1mad6y1j79iaqa6khs0q2cb0z62yfg4srbr07fi8xr";
|
2009-07-15 21:34:08 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gettext wrapGAppsHook ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ glib gtk3 gmtk dbus dbus-glib libnotify libpulseaudio ];
|
2017-03-18 11:15:25 +00:00
|
|
|
|
2018-01-02 07:50:11 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
mencoder = "${mplayer}/bin/mencoder";
|
|
|
|
mplayer = "${mplayer}/bin/mplayer";
|
|
|
|
})
|
|
|
|
];
|
2017-03-18 11:15:25 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2009-07-15 21:34:08 +01:00
|
|
|
description = "Gnome MPlayer, a simple GUI for MPlayer";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sites.google.com/site/kdekorte2/gnomemplayer";
|
2018-01-02 07:50:11 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [];
|
|
|
|
platforms = platforms.linux;
|
2009-07-15 21:34:08 +01:00
|
|
|
};
|
|
|
|
}
|