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

55 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, makeDesktopItem, pkgconfig, ffmpeg, mesa, nvidia_cg_toolkit
, freetype, libxml2, libv4l, coreutils, python34, which, udev, alsaLib
, libX11, libXext, libXxf86vm, libXdmcp, SDL, libpulseaudio ? null }:
2013-06-26 13:25:09 +02:00
let
desktopItem = makeDesktopItem {
name = "retroarch";
exec = "retroarch";
icon = "retroarch";
comment = "Multi-Engine Platform";
desktopName = "RetroArch";
genericName = "Libretro Frontend";
categories = "Game;Emulator;";
#keywords = "multi;engine;emulator;xmb;";
};
in
2013-06-26 13:25:09 +02:00
stdenv.mkDerivation rec {
name = "retroarch-bare-${version}";
version = "2015-11-20";
2013-06-26 13:25:09 +02:00
2013-12-15 16:47:25 +01:00
src = fetchgit {
url = https://github.com/libretro/RetroArch.git;
rev = "09dda14549fc13231311fd522a07a75e923889aa";
sha256 = "1f7w4i0idc4n0sqc5pcrsxsljk3f614sfdqhdgjb1l4xj16g37cg";
2013-06-26 13:25:09 +02:00
};
buildInputs = [ pkgconfig ffmpeg mesa nvidia_cg_toolkit freetype libxml2 libv4l coreutils
python34 which udev alsaLib libX11 libXext libXxf86vm libXdmcp SDL libpulseaudio ];
2013-06-26 13:25:09 +02:00
patchPhase = ''
export GLOBAL_CONFIG_DIR=$out/etc
sed -e 's#/bin/true#${coreutils}/bin/true#' -i qb/qb.libs.sh
2013-06-26 13:25:09 +02:00
'';
postInstall = ''
mkdir -p $out/share/icons/hicolor/scalable/apps
cp -p -T ./media/retroarch.svg $out/share/icons/hicolor/scalable/apps/retroarch.svg
mkdir -p "$out/share/applications"
cp ${desktopItem}/share/applications/* $out/share/applications
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = http://libretro.org/;
description = "Multi-platform emulator frontend for libretro cores";
license = licenses.gpl3;
2014-11-19 12:03:00 +01:00
platforms = stdenv.lib.platforms.linux;
maintainers = with maintainers; [ MP2E edwtjo ];
2013-06-26 13:25:09 +02:00
};
}