-
-
Save cleverca22/d42955179f9aff2a7edd4c3be1c537d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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