nixpkgs-suyu/pkgs/applications/video/gnome-mplayer/default.nix

34 lines
970 B
Nix
Raw Normal View History

{stdenv, substituteAll, fetchFromGitHub, pkgconfig, gettext, glib, gtk3, gmtk, dbus, dbus-glib
2018-01-02 08:50:11 +01:00
, libnotify, libpulseaudio, mplayer, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "gnome-mplayer";
2018-01-02 08:50:11 +01:00
version = "1.0.9";
2018-01-02 08:50:11 +01:00
src = fetchFromGitHub {
owner = "kdekorte";
repo = "gnome-mplayer";
rev = "v${version}";
sha256 = "0qvy9fllvg1mad6y1j79iaqa6khs0q2cb0z62yfg4srbr07fi8xr";
};
2018-01-02 08:50:11 +01:00
nativeBuildInputs = [ pkgconfig gettext wrapGAppsHook ];
buildInputs = [ glib gtk3 gmtk dbus dbus-glib libnotify libpulseaudio ];
2017-03-18 12:15:25 +01:00
2018-01-02 08:50:11 +01:00
patches = [
(substituteAll {
src = ./fix-paths.patch;
mencoder = "${mplayer}/bin/mencoder";
mplayer = "${mplayer}/bin/mplayer";
})
];
2017-03-18 12:15:25 +01:00
2018-01-02 08:50:11 +01:00
meta = with stdenv.lib; {
description = "Gnome MPlayer, a simple GUI for MPlayer";
2018-01-02 08:50:11 +01:00
homepage = https://sites.google.com/site/kdekorte2/gnomemplayer;
license = licenses.gpl2;
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}