1 { stdenv, lib, fetchzip, wxGTK32, coreutils, SDL2, openal, alsa-lib, pkg-config, gtk3, wrapGAppsHook
2 , autoreconfHook, withNetworking ? true, withALSA ? true }:
4 stdenv.mkDerivation rec {
9 url = "https://pcem-emulator.co.uk/files/PCemV${version}Linux.tar.gz";
11 sha256 = "067pbnc15h6a4pnnym82klr1w8qwfm6p0pkx93gx06wvwqsxvbdv";
14 nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
15 buildInputs = [ wxGTK32 coreutils SDL2 openal gtk3 ]
16 ++ lib.optional withALSA alsa-lib;
18 configureFlags = [ "--enable-release-build" ]
19 ++ lib.optional withNetworking "--enable-networking"
20 ++ lib.optional withALSA "--enable-alsa";
23 description = "Emulator for IBM PC computers and clones";
24 homepage = "https://pcem-emulator.co.uk/";
25 license = licenses.gpl2Only;
26 maintainers = [ maintainers.terin ];
27 platforms = platforms.linux ++ platforms.windows;