about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/gambatte/default.nix
blob: 6d8d14d8de0d91938d32a72702a0933d6eb1ba01 (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
{ stdenv, fetchFromGitHub, scons, qt4 }:

stdenv.mkDerivation {
  pname = "gambatte";
  version = "2016-05-03";

  src = fetchFromGitHub {
    owner = "sinamas";
    repo = "gambatte";
    rev = "f8a810b103c4549f66035dd2be4279c8f0d95e77";
    sha256 = "1arv4zkh3fhrghsykl4blazc9diw09m44pyff1059z5b98smxy3v";
  };

  buildInputs = [ scons qt4 ];

  patches = [ ./fix-scons-paths.patch ];

  buildPhase = ''
    ./build_qt.sh
  '';

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

  meta = with stdenv.lib; {
    description = "Portable, open-source Game Boy Color emulator";
    homepage = https://github.com/sinamas/gambatte;
    license = licenses.gpl2;
    maintainers = [ maintainers.dezgeg ];
    platforms = platforms.linux;
  };
}