eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{lib, stdenv, substituteAll, fetchFromGitHub, pkg-config, gettext, glib, gtk3, gmtk, dbus, dbus-glib
|
|
, libnotify, libpulseaudio, mplayer, wrapGAppsHook3 }:
|
|
|
|
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 wrapGAppsHook3 ];
|
|
buildInputs = [ glib gtk3 gmtk dbus dbus-glib libnotify libpulseaudio ];
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
mencoder = "${mplayer}/bin/mencoder";
|
|
mplayer = "${mplayer}/bin/mplayer";
|
|
})
|
|
];
|
|
|
|
# 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
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
|
|
meta = with lib; {
|
|
description = "Gnome MPlayer, a simple GUI for MPlayer";
|
|
mainProgram = "gnome-mplayer";
|
|
homepage = "https://sites.google.com/site/kdekorte2/gnomemplayer";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|