diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-15 23:28:16 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-16 01:38:20 -0300 |
commit | 8d65e832f0a18f60e2040940c80d96373ac8b88c (patch) | |
tree | 3d6ade66b2a81403e3852b80b9e7c660699b6ed6 /pkgs/applications/emulators/xcpc | |
parent | 19574af0af3ffaf7c9e359744ed32556f34536bd (diff) |
Move misc/emulators to applications/emulators - part 1
Emulators form a class by themselves. So, they should be moved to applications/.
Diffstat (limited to 'pkgs/applications/emulators/xcpc')
-rw-r--r-- | pkgs/applications/emulators/xcpc/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/xcpc/default.nix b/pkgs/applications/emulators/xcpc/default.nix new file mode 100644 index 000000000000..633d44bb5ae4 --- /dev/null +++ b/pkgs/applications/emulators/xcpc/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl, pkg-config, glib, libXaw, libX11, libXext + , libDSKSupport ? true, libdsk + , motifSupport ? false, lesstif +}: + +with lib; +stdenv.mkDerivation rec { + version = "20070122"; + pname = "xcpc"; + + src = fetchurl { + url = "mirror://sourceforge/xcpc/${pname}-${version}.tar.gz"; + sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n"; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ glib libdsk libXaw libX11 libXext ] + ++ optional libDSKSupport libdsk + ++ optional motifSupport lesstif; + + meta = { + description = "A portable Amstrad CPC 464/664/6128 emulator written in C"; + homepage = "https://www.xcpc-emulator.net"; + license = licenses.gpl2Plus; + maintainers = [ ]; + platforms = platforms.linux; + }; +} |