@@ -0,0 +1,41 @@
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, pkg-config
5+, SDL2
6+}:
7+
8+stdenv.mkDerivation rec {
9+ pname = "yapesdl";
10+ version = "0.70.2";
11+
12+ src = fetchFromGitHub {
13+ owner = "calmopyrin";
14+ repo = pname;
15+ rev = "v${version}";
16+ hash = "sha256-51P6wNaSfVA3twu+yRUKXguEmVBvuuEnHxH1Zl1vsCc=";
17+ };
18+
19+ nativeBuildInputs = [
20+ pkg-config
21+ ];
22+ buildInputs = [
23+ SDL2
24+ ];
25+
26+ installPhase = ''
27+ runHook preInstall
28+ install --directory $out/bin $out/share/doc/$pname
29+ install yapesdl $out/bin/
30+ install README.SDL $out/share/doc/$pname/
31+ runHook postInstall
32+ '';
33+
34+ meta = with lib; {
35+ homepage = "http://yape.plus4.net/";
36+ description = "Multiplatform Commodore 64 and 264 family emulator";
37+ license = licenses.gpl2Plus;
38+ maintainers = with maintainers; [ AndersonTorres ];
39+ platforms = platforms.unix;
40+ };
41+}