lol
1{ lib, stdenv, fetchurl, pkg-config, glib, libXaw, libX11, libXext
2 , libDSKSupport ? true, libdsk
3 , motifSupport ? false, lesstif
4}:
5
6with lib;
7stdenv.mkDerivation rec {
8 version = "20070122";
9 pname = "xcpc";
10
11 src = fetchurl {
12 url = "mirror://sourceforge/xcpc/${pname}-${version}.tar.gz";
13 sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n";
14 };
15
16 nativeBuildInputs = [ pkg-config ];
17
18 buildInputs = [ glib libdsk libXaw libX11 libXext ]
19 ++ optional libDSKSupport libdsk
20 ++ optional motifSupport lesstif;
21
22 meta = {
23 description = "A portable Amstrad CPC 464/664/6128 emulator written in C";
24 homepage = "https://www.xcpc-emulator.net";
25 license = licenses.gpl2Plus;
26 maintainers = [ ];
27 platforms = platforms.linux;
28 };
29}