nixpkgs/pkgs/applications/video/gnome-mplayer/default.nix
2021-01-16 23:49:59 -08:00

33 lines
972 B
Nix

{lib, stdenv, substituteAll, fetchFromGitHub, pkg-config, gettext, glib, gtk3, gmtk, dbus, dbus-glib
, 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";
};
nativeBuildInputs = [ pkg-config gettext wrapGAppsHook ];
buildInputs = [ glib gtk3 gmtk dbus dbus-glib libnotify libpulseaudio ];
patches = [
(substituteAll {
src = ./fix-paths.patch;
mencoder = "${mplayer}/bin/mencoder";
mplayer = "${mplayer}/bin/mplayer";
})
];
meta = with lib; {
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;
};
}