Files
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

71 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
SDL,
libGL,
libGLU,
libpng,
libX11,
nasm,
pkg-config,
zlib,
udevCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zsnes2";
version = "2.0.12";
src = fetchFromGitHub {
owner = "xyproto";
repo = "zsnes";
tag = finalAttrs.version;
hash = "sha256-Xz+9YgMpnHyno7vP67aut4tIyG/gTn7SnU2FO2QMND0=";
};
nativeBuildInputs = [
nasm
pkg-config
udevCheckHook
];
buildInputs = [
SDL
libGL
libGLU
libpng
libX11
zlib
];
dontConfigure = true;
env.NIX_CFLAGS_COMPILE = toString [
# Until upstream fixes the issues...
"-Wp,-D_FORTIFY_SOURCE=0"
];
installFlags = [
"PREFIX=${placeholder "out"}"
];
postInstall = ''
install -Dm644 linux/zsnes.desktop $out/share/applications/zsnes.desktop
install -Dm644 icons/16x16x32.png $out/share/icons/hicolor/16x16/apps/zsnes.png
install -Dm644 icons/32x32x32.png $out/share/icons/hicolor/32x32/apps/zsnes.png
install -Dm644 icons/48x48x32.png $out/share/icons/hicolor/48x48/apps/zsnes.png
install -Dm644 icons/64x64x32.png $out/share/icons/hicolor/64x64/apps/zsnes.png
'';
doInstallCheck = true;
meta = {
homepage = "https://github.com/xyproto/zsnes";
description = "Maintained fork of zsnes";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.intersectLists lib.platforms.linux lib.platforms.x86;
};
})