2018-03-17 15:47:55 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libpng, pkgconfig, SDL, freetype, zlib }:
|
2018-03-04 22:51:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
repo = "caprice32";
|
2018-08-04 21:21:17 +01:00
|
|
|
version = "unstable-2018-03-05";
|
|
|
|
rev = "317fe638111e245d67e301f6f295094d3c859a70";
|
2018-03-04 22:51:15 +00:00
|
|
|
name = "${repo}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev repo;
|
|
|
|
owner = "ColinPitrat";
|
2018-08-04 21:21:17 +01:00
|
|
|
sha256 = "1bywpmkizixcnr057k8zq9nlw0zhcmwkiriln0krgdcm7d3h9b86";
|
2018-03-04 22:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "substituteInPlace cap32.cfg --replace /usr/local $out";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A complete emulation of CPC464, CPC664 and CPC6128";
|
|
|
|
homepage = https://github.com/ColinPitrat/caprice32 ;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.genesis ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libpng SDL freetype zlib ];
|
|
|
|
makeFlags = [ "GIT_HASH=${src.rev}" "DESTDIR=$(out)" "prefix=/"];
|
|
|
|
}
|