@@ -1,20 +1,27 @@
1−{ stdenv, fetchurl, libdsk, pkgconfig, glib, libXaw, libX11, libXext, lesstif }:
1+{ stdenv, fetchurl, pkgconfig, glib, libXaw, libX11, libXext
2+ , libDSKSupport ? true, libdsk
3+ , motifSupport ? false, lesstif
4+}:
25
6+with stdenv.lib;
37stdenv.mkDerivation rec {
48 version = "20070122";
5− name = "xcpc-${version}";
9+ pname = "xcpc";
610
711 src = fetchurl {
8− url = "mirror://sourceforge/xcpc/${name}.tar.gz";
12+ url = "mirror://sourceforge/xcpc/${pname}-${version}.tar.gz";
913 sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n";
1014 };
1115
1216 nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ glib libdsk libXaw libX11 libXext lesstif ];
1417
15− meta = with stdenv.lib; {
18+ buildInputs = [ glib libdsk libXaw libX11 libXext ]
19+ ++ optional libDSKSupport libdsk
20+ ++ optional motifSupport lesstif;
21+
22+ meta = {
1623 description = "A portable Amstrad CPC 464/664/6128 emulator written in C";
17− homepage = https://www.xcpc-emulator.net;
24+ homepage = "https://www.xcpc-emulator.net";
1825 license = licenses.gpl2Plus;
1926 maintainers = [ maintainers.genesis ];
2027 platforms = platforms.linux;