summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/emulators/pcem
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-02-15 23:28:16 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-02-16 01:38:20 -0300
commit8d65e832f0a18f60e2040940c80d96373ac8b88c (patch)
tree3d6ade66b2a81403e3852b80b9e7c660699b6ed6 /pkgs/applications/emulators/pcem
parent19574af0af3ffaf7c9e359744ed32556f34536bd (diff)
Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
Diffstat (limited to 'pkgs/applications/emulators/pcem')
-rw-r--r--pkgs/applications/emulators/pcem/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/pcem/default.nix b/pkgs/applications/emulators/pcem/default.nix
new file mode 100644
index 000000000000..2e6aa683e4d3
--- /dev/null
+++ b/pkgs/applications/emulators/pcem/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, lib, fetchzip, wxGTK31, coreutils, SDL2, openal, alsa-lib, 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 alsa-lib;
+
+ 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;
+ };
+}