git.iko.soy/typeable/nixpkgs
on master help sign in
caprice32: unstable-2018-03-05 -> 4.5.0 (#60663)

caprice32: unstable-2018-03-05 -> 4.5.0

commitecf59492c75220e37caf533d09087349ab7e5577 authorFlorian Klink <flokli@flokli.de> dateWed 1 May 2019, 22:59 (8 years ago) parentd9876f624b83b0
1 file changed+11−11
pkgs/misc/emulators/caprice32/default.nix+11−11
pkgs/misc/emulators/caprice32/default.nix+11−11
@@ -2,18 +2,22 @@
22
33stdenv.mkDerivation rec {
44
5− repo = "caprice32";
6− version = "unstable-2018-03-05";
7− rev = "317fe638111e245d67e301f6f295094d3c859a70";
8− name = "${repo}-${version}";
5+ pname = "caprice32";
6+ version = "4.5.0";
97
108 src = fetchFromGitHub {
11− inherit rev repo;
9+ repo = "caprice32";
10+ rev = "v${version}";
1211 owner = "ColinPitrat";
13− sha256 = "1bywpmkizixcnr057k8zq9nlw0zhcmwkiriln0krgdcm7d3h9b86";
12+ sha256 = "056vrf5yq1574g93ix8hnjqqbdqza3qcjv0f8rvpsslqcbizma9y";
1413 };
1514
1615 postPatch = "substituteInPlace cap32.cfg --replace /usr/local $out";
16+ nativeBuildInputs = [ pkgconfig ];
17+ buildInputs = [ libpng SDL freetype zlib ];
18+
19+ #fix GIT_HASH avoid depend on git
20+ makeFlags = [ "GIT_HASH=${src.rev}" "DESTDIR=$(out)" "prefix=/"];
1721
1822 meta = with stdenv.lib; {
1923 description = "A complete emulation of CPC464, CPC664 and CPC6128";
@@ -21,9 +25,5 @@ stdenv.mkDerivation rec {
2125 license = licenses.gpl2;
2226 maintainers = [ maintainers.genesis ];
2327 platforms = platforms.linux;
24− };
25−
26− nativeBuildInputs = [ pkgconfig ];
27− buildInputs = [ libpng SDL freetype zlib ];
28− makeFlags = [ "GIT_HASH=${src.rev}" "DESTDIR=$(out)" "prefix=/"];
28+ };
2929}