diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-12 16:16:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 16:16:26 +0100 |
commit | 88e9af25b8af44e2904a7ff5b8e092c7f4407988 (patch) | |
tree | 9ec9afb7e8c8ee7973202d31615fb41e311645b4 /pkgs/misc/emulators | |
parent | 26787436b3fb60f3f4882822e34520031ca9c3b8 (diff) | |
parent | f34f9aa38fe3fc7482942d1df7a2d67df22dc192 (diff) |
Merge pull request #108907 from terinjokes/patches/pcem
Diffstat (limited to 'pkgs/misc/emulators')
-rw-r--r-- | pkgs/misc/emulators/pcem/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/pcem/default.nix b/pkgs/misc/emulators/pcem/default.nix new file mode 100644 index 0000000000000..6e7e3bc6379cc --- /dev/null +++ b/pkgs/misc/emulators/pcem/default.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, fetchzip, wxGTK31, coreutils, SDL2, openal, alsaLib, pkg-config +, 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"; + }; + + nativeBuildInputs = [ autoreconfHook pkg-config ]; + buildInputs = [ wxGTK31 coreutils SDL2 openal ] + ++ lib.optional withALSA alsaLib; + + 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"; + homepage = "https://pcem-emulator.co.uk/"; + license = licenses.gpl2Only; + maintainers = [ maintainers.terin ]; + platforms = platforms.linux ++ platforms.windows; + }; +} |