2023-01-20 10:41:00 +00:00
|
|
|
{ stdenv, lib, fetchzip, wxGTK32, coreutils, SDL2, openal, alsa-lib, pkg-config, gtk3, wrapGAppsHook
|
2021-01-15 22:18:51 +00:00
|
|
|
, autoreconfHook, withNetworking ? true, withALSA ? true }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pcem";
|
|
|
|
version = "17";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://pcem-emulator.co.uk/files/PCemV${version}Linux.tar.gz";
|
|
|
|
stripRoot = false;
|
|
|
|
sha256 = "067pbnc15h6a4pnnym82klr1w8qwfm6p0pkx93gx06wvwqsxvbdv";
|
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
|
|
|
buildInputs = [ wxGTK32 coreutils SDL2 openal gtk3 ]
|
2021-06-28 23:13:55 +00:00
|
|
|
++ lib.optional withALSA alsa-lib;
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-release-build" ]
|
|
|
|
++ lib.optional withNetworking "--enable-networking"
|
|
|
|
++ lib.optional withALSA "--enable-alsa";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Emulator for IBM PC computers and clones";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pcem";
|
2021-01-15 22:18:51 +00:00
|
|
|
homepage = "https://pcem-emulator.co.uk/";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = [ maintainers.terin ];
|
|
|
|
platforms = platforms.linux ++ platforms.windows;
|
|
|
|
};
|
|
|
|
}
|