nixpkgs-suyu/pkgs/misc/emulators/mupen64plus/default.nix

30 lines
966 B
Nix
Raw Normal View History

2017-09-09 18:28:25 +02:00
{stdenv, lib, fetchurl, boost, dash, freetype, libpng, pkgconfig, SDL, which, zlib }:
stdenv.mkDerivation rec {
name = "mupen64plus-${version}";
version = "2.5";
src = fetchurl {
2017-09-09 18:28:25 +02:00
url = "https://github.com/mupen64plus/mupen64plus-core/releases/download/${version}/mupen64plus-bundle-src-${version}.tar.gz";
sha256 = "0rmsvfn4zfvbhz6gf1xkb7hnwflv6sbklwjz2xk4dlpj4vcbjxcw";
};
2016-02-12 13:50:49 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost dash freetype libpng SDL which zlib ];
2017-09-09 18:28:25 +02:00
buildPhase = ''
dash m64p_build.sh PREFIX="$out" COREDIR="$out/lib/" PLUGINDIR="$out/lib/mupen64plus" SHAREDIR="$out/share/mupen64plus"
'';
installPhase = ''
dash m64p_install.sh DESTDIR="$out" PREFIX=""
'';
2016-02-12 13:50:49 +01:00
meta = {
description = "A Nintendo 64 Emulator";
license = stdenv.lib.licenses.gpl2Plus;
2017-09-09 18:28:25 +02:00
homepage = http://www.mupen64plus.org/;
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = stdenv.lib.platforms.linux;
};
}