Files
nixpkgs/pkgs/by-name/op/openmsx/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

93 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchpatch2,
fetchFromGitHub,
pkg-config,
SDL2,
SDL2_image,
SDL2_ttf,
alsa-lib,
freetype,
glew,
libGL,
libogg,
libpng,
libtheora,
libvorbis,
libX11,
python3,
tcl,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "openmsx";
version = "20_0";
src = fetchFromGitHub {
owner = "openMSX";
repo = "openMSX";
tag = "RELEASE_${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-iY+oZ7fHZnnEGunM4kOxOGH2Biqj2PfdLhbT8J4mYrA=";
fetchSubmodules = true;
};
patches = [
(fetchpatch2 {
name = "fix_view_operator.patch";
url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_view_operator.patch?h=openmsx&id=aa63ce478c7f528d60b79bcf4c9427101caa3b94";
hash = "sha256-3wmUJQrM5P3zfFJt+HF32AchNSqCgFTnQ508Bztg4uA=";
})
];
nativeBuildInputs = [
pkg-config
python3
];
buildInputs = [
SDL2
SDL2_image
SDL2_ttf
libX11
alsa-lib
freetype
glew
libGL
libogg
libpng
libtheora
libvorbis
tcl
zlib
];
postPatch = ''
cp ${./custom-nix.mk} build/custom.mk
'';
dontAddPrefix = true;
# Many thanks @mthuurne from OpenMSX project for providing support to
# Nixpkgs! :)
TCL_CONFIG = "${tcl}/lib/";
meta = with lib; {
homepage = "https://openmsx.org";
description = "MSX emulator that aims for perfection";
longDescription = ''
OpenMSX is an emulator for the MSX home computer system. Its goal is
to emulate all aspects of the MSX with 100% accuracy.
'';
license = with licenses; [
bsd2
boost
gpl2Plus
];
maintainers = [ ];
platforms = platforms.unix;
mainProgram = "openmsx";
};
})