Merge pull request #61982 from bignaux/xcpc
xcpc: move libdsk and lesstiff as optional
This commit is contained in:
commit
5dc4d65b57
@ -1,20 +1,27 @@
|
|||||||
{ stdenv, fetchurl, libdsk, pkgconfig, glib, libXaw, libX11, libXext, lesstif }:
|
{ stdenv, fetchurl, pkgconfig, glib, libXaw, libX11, libXext
|
||||||
|
, libDSKSupport ? true, libdsk
|
||||||
|
, motifSupport ? false, lesstif
|
||||||
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "20070122";
|
version = "20070122";
|
||||||
name = "xcpc-${version}";
|
pname = "xcpc";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/xcpc/${name}.tar.gz";
|
url = "mirror://sourceforge/xcpc/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n";
|
sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ glib libdsk libXaw libX11 libXext lesstif ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
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";
|
description = "A portable Amstrad CPC 464/664/6128 emulator written in C";
|
||||||
homepage = https://www.xcpc-emulator.net;
|
homepage = "https://www.xcpc-emulator.net";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ maintainers.genesis ];
|
maintainers = [ maintainers.genesis ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user