9be54a523e
- Added missing freedesktop items (`*.desktop` and icon). Note that for the moment, only added an `*.svg` icon as was the only available. It does not give us the best results (at least in xfce). We may decide later on to extract the content of the `*.ico` instead which is a bit more involved.
55 lines
1.7 KiB
Nix
55 lines
1.7 KiB
Nix
{ stdenv, fetchgit, makeDesktopItem, pkgconfig, ffmpeg, mesa, nvidia_cg_toolkit
|
|
, freetype, libxml2, libv4l, coreutils, python34, which, udev, alsaLib
|
|
, libX11, libXext, libXxf86vm, libXdmcp, SDL, libpulseaudio ? null }:
|
|
|
|
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
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "retroarch-bare-${version}";
|
|
version = "2015-11-20";
|
|
|
|
src = fetchgit {
|
|
url = https://github.com/libretro/RetroArch.git;
|
|
rev = "09dda14549fc13231311fd522a07a75e923889aa";
|
|
sha256 = "1f7w4i0idc4n0sqc5pcrsxsljk3f614sfdqhdgjb1l4xj16g37cg";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig ffmpeg mesa nvidia_cg_toolkit freetype libxml2 libv4l coreutils
|
|
python34 which udev alsaLib libX11 libXext libXxf86vm libXdmcp SDL libpulseaudio ];
|
|
|
|
patchPhase = ''
|
|
export GLOBAL_CONFIG_DIR=$out/etc
|
|
sed -e 's#/bin/true#${coreutils}/bin/true#' -i qb/qb.libs.sh
|
|
'';
|
|
|
|
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;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with maintainers; [ MP2E edwtjo ];
|
|
};
|
|
}
|