2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, substituteAll, fetchFromGitHub, pkg-config, gettext, glib, gtk3, gmtk, dbus, dbus-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libnotify, libpulseaudio, mplayer, wrapGAppsHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-mplayer";
|
|
|
|
version = "1.0.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdekorte";
|
|
|
|
repo = "gnome-mplayer";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0qvy9fllvg1mad6y1j79iaqa6khs0q2cb0z62yfg4srbr07fi8xr";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gettext wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glib gtk3 gmtk dbus dbus-glib libnotify libpulseaudio ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
mencoder = "${mplayer}/bin/mencoder";
|
|
|
|
mplayer = "${mplayer}/bin/mplayer";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: mpris-interface.o:src/playlist.h:32: multiple definition of
|
|
|
|
# `plclose'; gui.o:src/playlist.h:32: first defined here
|
|
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Gnome MPlayer, a simple GUI for MPlayer";
|
|
|
|
homepage = "https://sites.google.com/site/kdekorte2/gnomemplayer";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|