Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active September 27, 2017 19:17
Show Gist options
  • Save cleverca22/d42955179f9aff2a7edd4c3be1c537d2 to your computer and use it in GitHub Desktop.
Save cleverca22/d42955179f9aff2a7edd4c3be1c537d2 to your computer and use it in GitHub Desktop.
{ stdenv, lib, fetchFromGitHub, pkgconfig, which, freetype, libpng, mesa, SDL2, zlib }:
stdenv.mkDerivation rec {
name = "mupen64plus-${version}";
version = "2.5";
src = fetchFromGitHub {
owner = "mupen64plus";
repo = "mupen64plus-core";
rev = version;
sha256 = "116fndl6652zrp1r6ag4xv3dzp1x52mlvadj8xwflq07fd5rhri1";
};
nativeBuildInputs = [ pkgconfig which ];
buildInputs = [ freetype libpng mesa SDL2 zlib ];
preConfigure = "cd projects/unix";
preBuild = ''
makeFlags="$makeFlags all PREFIX=$out"
'';
installPhase = ''
make install PREFIX=$out
'';
meta = with stdenv.lib; {
description = "A Nintendo 64 Emulator";
license = licenses.gpl2Plus;
homepage = http://www.mupen64plus.org/;
maintainers = with maintainers; [ sander ];
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment