Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / emulators / pcem / default.nix
blobbd9503f017789d10827e920e035ce1be8e372908
1 { stdenv, lib, fetchzip, wxGTK32, coreutils, SDL2, openal, alsa-lib, pkg-config, gtk3, wrapGAppsHook
2 , autoreconfHook, withNetworking ? true, withALSA ? true }:
4 stdenv.mkDerivation rec {
5   pname = "pcem";
6   version = "17";
8   src = fetchzip {
9     url = "https://pcem-emulator.co.uk/files/PCemV${version}Linux.tar.gz";
10     stripRoot = false;
11     sha256 = "067pbnc15h6a4pnnym82klr1w8qwfm6p0pkx93gx06wvwqsxvbdv";
12   };
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";
22   meta = with lib; {
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;
28   };