eaglemode: apply new RFC formatting

I can't be bothered to do this manually, and even though the style is noisy,
it'll be forced through eventually so might as well.
This commit is contained in:
Vincent Ambo 2024-08-27 16:22:44 +03:00 committed by Emery Hemingway
parent 1a88164cc0
commit 87da5b4045

View File

@ -1,7 +1,30 @@
{ lib, stdenv, fetchurl, perl, libX11, libXinerama, libjpeg, libpng, libtiff
, libwebp, pkg-config, librsvg, glib, gtk2, libXext, libXxf86vm, poppler, vlc
, ghostscript, makeWrapper, tzdata, makeDesktopItem, copyDesktopItems
, directoryListingUpdater }:
{
lib,
stdenv,
fetchurl,
perl,
libX11,
libXinerama,
libjpeg,
libpng,
libtiff,
libwebp,
pkg-config,
librsvg,
glib,
gtk2,
libXext,
libXxf86vm,
poppler,
vlc,
ghostscript,
makeWrapper,
tzdata,
makeDesktopItem,
copyDesktopItems,
directoryListingUpdater,
htmldoc,
}:
stdenv.mkDerivation rec {
pname = "eaglemode";
@ -17,9 +40,28 @@ stdenv.mkDerivation rec {
substituteInPlace src/emClock/emTimeZonesModel.cpp --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
'';
nativeBuildInputs = [ pkg-config makeWrapper copyDesktopItems ];
buildInputs = [ perl libX11 libXinerama libjpeg libpng libtiff libwebp
librsvg glib gtk2 libXxf86vm libXext poppler vlc ghostscript ];
nativeBuildInputs = [
pkg-config
makeWrapper
copyDesktopItems
];
buildInputs = [
perl
libX11
libXinerama
libjpeg
libpng
libtiff
libwebp
librsvg
glib
gtk2
libXxf86vm
libXext
poppler
vlc
ghostscript
];
# The program tries to dlopen Xxf86vm, Xext and Xinerama, so we use the
# trick on NIX_LDFLAGS and dontPatchELF to make it find them.
@ -32,7 +74,10 @@ stdenv.mkDerivation rec {
dontPatchELF = true;
# eaglemode expects doc to be in the root directory
forceShare = [ "man" "info" ];
forceShare = [
"man"
"info"
];
installPhase = ''
runHook preInstall
@ -52,7 +97,12 @@ stdenv.mkDerivation rec {
icon = pname;
desktopName = "Eagle Mode";
genericName = meta.description;
categories = [ "Game" "Graphics" "System" "Utility" ];
categories = [
"Game"
"Graphics"
"System"
"Utility"
];
})
];
@ -66,7 +116,10 @@ stdenv.mkDerivation rec {
description = "Zoomable User Interface";
changelog = "https://eaglemode.sourceforge.net/ChangeLog.html";
license = licenses.gpl3;
maintainers = with maintainers; [ chuangzhu ehmry ];
maintainers = with maintainers; [
chuangzhu
ehmry
];
platforms = platforms.linux;
};
}