about summary refs log tree commit diff
path: root/pkgs/misc/emulators/yapesdl/default.nix
blob: 5f4b7771fb5ffc93e7abed5483a3336d76b85d74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, SDL2
}:

stdenv.mkDerivation rec {
  pname = "yapesdl";
  version = "0.70.2";

  src = fetchFromGitHub {
    owner = "calmopyrin";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-51P6wNaSfVA3twu+yRUKXguEmVBvuuEnHxH1Zl1vsCc=";
  };

  nativeBuildInputs = [
    pkg-config
  ];
  buildInputs = [
    SDL2
  ];

  makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];

  installPhase = ''
    runHook preInstall
    install --directory $out/bin $out/share/doc/$pname
    install yapesdl $out/bin/
    install README.SDL $out/share/doc/$pname/
    runHook postInstall
  '';

  meta = with lib; {
    homepage = "http://yape.plus4.net/";
    description = "Multiplatform Commodore 64 and 264 family emulator";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.unix;
  };
}