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 {
|
|
|
|
|
2019-05-01 20:20:47 +01:00
|
|
|
pname = "caprice32";
|
|
|
|
version = "4.5.0";
|
2018-03-04 22:51:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-05-01 20:20:47 +01:00
|
|
|
repo = "caprice32";
|
|
|
|
rev = "v${version}";
|
2018-03-04 22:51:15 +00:00
|
|
|
owner = "ColinPitrat";
|
2019-05-01 20:20:47 +01:00
|
|
|
sha256 = "056vrf5yq1574g93ix8hnjqqbdqza3qcjv0f8rvpsslqcbizma9y";
|
2018-03-04 22:51:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "substituteInPlace cap32.cfg --replace /usr/local $out";
|
2019-05-01 20:20:47 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libpng SDL freetype zlib ];
|
|
|
|
|
|
|
|
#fix GIT_HASH avoid depend on git
|
|
|
|
makeFlags = [ "GIT_HASH=${src.rev}" "DESTDIR=$(out)" "prefix=/"];
|
2018-03-04 22:51:15 +00:00
|
|
|
|
|
|
|
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;
|
2019-05-01 20:20:47 +01:00
|
|
|
};
|
2018-03-04 22:51:15 +00:00
|
|
|
}
|