2019-05-24 01:17:26 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, libXaw, libX11, libXext
|
|
|
|
, libDSKSupport ? true, libdsk
|
|
|
|
, motifSupport ? false, lesstif
|
|
|
|
}:
|
2018-02-27 18:02:44 +00:00
|
|
|
|
2019-05-24 01:17:26 +01:00
|
|
|
with stdenv.lib;
|
2018-02-27 18:02:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "20070122";
|
2019-05-24 01:17:26 +01:00
|
|
|
pname = "xcpc";
|
2018-02-27 18:02:44 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-24 01:17:26 +01:00
|
|
|
url = "mirror://sourceforge/xcpc/${pname}-${version}.tar.gz";
|
2018-02-27 18:02:44 +00:00
|
|
|
sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2019-05-24 01:17:26 +01:00
|
|
|
buildInputs = [ glib libdsk libXaw libX11 libXext ]
|
|
|
|
++ optional libDSKSupport libdsk
|
|
|
|
++ optional motifSupport lesstif;
|
|
|
|
|
|
|
|
meta = {
|
2018-02-27 18:02:44 +00:00
|
|
|
description = "A portable Amstrad CPC 464/664/6128 emulator written in C";
|
2019-05-24 01:17:26 +01:00
|
|
|
homepage = "https://www.xcpc-emulator.net";
|
2018-02-27 18:02:44 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.genesis ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|