nixpkgs/pkgs/misc/emulators/xcpc/default.nix

30 lines
800 B
Nix
Raw Normal View History

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