Files
nixpkgs/pkgs/by-name/ne/nestopia-ue/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.4 KiB
Nix

{
lib,
SDL2,
alsa-lib,
autoconf-archive,
autoreconfHook,
fetchFromGitHub,
fltk,
libGL,
libGLU,
libao,
libarchive,
libepoxy,
makeWrapper,
pkg-config,
libsamplerate,
stdenv,
unzip,
wrapGAppsHook3,
xdg-utils,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nestopia";
version = "1.53.2";
src = fetchFromGitHub {
owner = "0ldsk00l";
repo = "nestopia";
rev = finalAttrs.version;
hash = "sha256-sKemwbmEr637KL951wsmDxLFDvWh+0K+exdDd0+Iq1c=";
};
buildInputs = [
SDL2
alsa-lib
fltk
libepoxy
libGLU
libGL
libarchive
libao
xdg-utils
libsamplerate
];
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 = [ ];
platforms = lib.platforms.linux;
};
})