1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 07:04:28 +00:00
nixpkgs/pkgs/misc/emulators/mupen64plus/default.nix

30 lines
966 B
Nix
Raw Normal View History

2017-09-09 17:28:25 +01: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 17:28:25 +01:00
url = "https://github.com/mupen64plus/mupen64plus-core/releases/download/${version}/mupen64plus-bundle-src-${version}.tar.gz";
sha256 = "0rmsvfn4zfvbhz6gf1xkb7hnwflv6sbklwjz2xk4dlpj4vcbjxcw";
};
2016-02-12 12:50:49 +00:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost dash freetype libpng SDL which zlib ];
2017-09-09 17:28:25 +01: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 12:50:49 +00:00
meta = {
description = "A Nintendo 64 Emulator";
license = stdenv.lib.licenses.gpl2Plus;
2017-09-09 17:28:25 +01:00
homepage = http://www.mupen64plus.org/;
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = stdenv.lib.platforms.linux;
};
}