mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
caprice32: 4.5.0 -> 4.6.0
This commit is contained in:
parent
ea8efb20a7
commit
be768d1ef3
@ -3,25 +3,28 @@
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
pname = "caprice32";
|
pname = "caprice32";
|
||||||
version = "4.5.0";
|
version = "4.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = "caprice32";
|
repo = "caprice32";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
owner = "ColinPitrat";
|
owner = "ColinPitrat";
|
||||||
sha256 = "056vrf5yq1574g93ix8hnjqqbdqza3qcjv0f8rvpsslqcbizma9y";
|
sha256 = "0hng5krwgc1h9bz1xlkp2hwnvas965nd7sb3z9mb2m6x9ghxlacz";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = "substituteInPlace cap32.cfg --replace /usr/local $out";
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ libpng SDL freetype zlib ];
|
buildInputs = [ libpng SDL freetype zlib ];
|
||||||
|
|
||||||
#fix GIT_HASH avoid depend on git
|
makeFlags = [
|
||||||
makeFlags = [ "GIT_HASH=${src.rev}" "DESTDIR=$(out)" "prefix=/"];
|
"APP_PATH=${placeholder "out"}/share/caprice32"
|
||||||
|
"RELEASE=1"
|
||||||
|
"DESTDIR=${placeholder "out"}"
|
||||||
|
"prefix=/"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A complete emulation of CPC464, CPC664 and CPC6128";
|
description = "A complete emulation of CPC464, CPC664 and CPC6128";
|
||||||
homepage = https://github.com/ColinPitrat/caprice32 ;
|
homepage = "https://github.com/ColinPitrat/caprice32";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = [ maintainers.genesis ];
|
maintainers = [ maintainers.genesis ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
Reference in New Issue
Block a user