about summary refs log tree commit diff
path: root/pkgs/applications/emulators/simplenes/default.nix
blob: 05a00e2c9201b6353e4d4c07c3cd0749a2d7083c (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
{ lib, stdenv
, fetchFromGitHub
, cmake
, sfml
}:

stdenv.mkDerivation rec {
  pname = "simplenes";
  version = "unstable-2019-03-13";

  src = fetchFromGitHub {
    owner = "amhndu";
    repo = "SimpleNES";
    rev = "4edb7117970c21a33b3bfe11a6606764fffc5173";
    sha256 = "1nmwj431iwqzzcykxd4xinqmg0rm14mx7zsjyhcc5skz7pihz86g";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ sfml ];

  installPhase = ''
    mkdir -p $out/bin
    cp ./SimpleNES $out/bin
  '';

  meta = with lib; {
    homepage = "https://github.com/amhndu/SimpleNES";
    description = "An NES emulator written in C++";
    license = licenses.gpl3;
    maintainers = with maintainers; [ ivar ];
    platforms = platforms.linux;
    mainProgram = "SimpleNES";
  };
}