mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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)
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{ lib
|
|
, SDL2
|
|
, alsa-lib
|
|
, autoconf-archive
|
|
, autoreconfHook
|
|
, fetchFromGitHub
|
|
, fltk
|
|
, libGL
|
|
, libGLU
|
|
, libao
|
|
, libarchive
|
|
, libepoxy
|
|
, makeWrapper
|
|
, pkg-config
|
|
, stdenv
|
|
, unzip
|
|
, wrapGAppsHook3
|
|
, xdg-utils
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nestopia";
|
|
version = "1.52.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "0ldsk00l";
|
|
repo = "nestopia";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-r8Z0Ejf5vWcdvxkUkUKJtipQIRoiwoRj0Bx06Gnxd08=";
|
|
};
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
alsa-lib
|
|
fltk
|
|
libepoxy
|
|
|
|
libGLU
|
|
libGL
|
|
libarchive
|
|
libao
|
|
xdg-utils
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
SDL2
|
|
autoconf-archive
|
|
autoreconfHook
|
|
fltk
|
|
pkg-config
|
|
makeWrapper
|
|
wrapGAppsHook3
|
|
unzip
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/{bin,share/nestopia}
|
|
'';
|
|
|
|
preFixup = ''
|
|
for f in $out/bin/*; do
|
|
wrapProgram $f \
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://0ldsk00l.ca/nestopia/";
|
|
description = "Cross-platform Nestopia emulator core with a GUI";
|
|
changelog = "https://raw.githubusercontent.com/0ldsk00l/nestopia/${finalAttrs.src.rev}/ChangeLog";
|
|
license = lib.licenses.gpl2Plus;
|
|
mainProgram = "nestopia";
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|