Merge branch 'master' into closure-size
Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
This commit is contained in:
@@ -11,15 +11,6 @@ diff -rupN higan_v095-source.orig/GNUmakefile higan_v095-source/GNUmakefile
|
||||
objects := libco
|
||||
|
||||
# profile-guided optimization mode
|
||||
@@ -43,7 +44,7 @@ ifeq ($(platform),windows)
|
||||
else ifeq ($(platform),macosx)
|
||||
flags += -march=native
|
||||
else ifeq ($(platform),linux)
|
||||
- flags += -march=native -fopenmp
|
||||
+ flags += -fopenmp
|
||||
link += -fopenmp
|
||||
link += -Wl,-export-dynamic
|
||||
link += -lX11 -lXext -ldl
|
||||
diff -rupN higan_v095-source.orig/icarus/GNUmakefile higan_v095-source/icarus/GNUmakefile
|
||||
--- higan_v095-source.orig/icarus/GNUmakefile 2015-11-04 10:28:26.186486119 +0100
|
||||
+++ higan_v095-source/icarus/GNUmakefile 2015-11-04 10:28:48.755059317 +0100
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, gtk2, mednafen }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
version = "0.8";
|
||||
name = "mednaffe-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "mednaffe";
|
||||
owner = "AmatCoder";
|
||||
rev = "v${version}";
|
||||
sha256 = "1j4py4ih14fa6dv0hka03rs4mq19ir83qkbxsz3695a4phmip0jr";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace src/mednaffe.c --replace "binpath = NULL" "binpath = \"${mednafen}/bin/mednafen\""
|
||||
'';
|
||||
|
||||
buildInputs = [ pkgconfig gtk2 mednafen ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A GTK based frontend for mednafen";
|
||||
homepage = https://github.com/AmatCoder/mednaffe;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.sheenobu ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -158,6 +158,18 @@ in
|
||||
buildPhase = "make";
|
||||
};
|
||||
|
||||
mednafen-psx = (mkLibRetroCore rec {
|
||||
core = "mednafen-psx";
|
||||
src = fetchRetro {
|
||||
repo = "beetle-psx-libretro";
|
||||
rev = "20c9b0eb0062b8768cc40aca0e2b2d626f1002a2";
|
||||
sha256 = "1dhql8zy9wv55m1lgvqv412087cqmlw7zwcsmxkl3r4z199dsh3m";
|
||||
};
|
||||
description = "Port of Mednafen's PSX Engine core to libretro";
|
||||
}).override {
|
||||
buildPhase = "make";
|
||||
};
|
||||
|
||||
mupen64plus = (mkLibRetroCore rec {
|
||||
core = "mupen64plus";
|
||||
src = fetchRetro {
|
||||
|
||||
@@ -1,7 +1,21 @@
|
||||
{ stdenv, fetchgit, pkgconfig, ffmpeg, mesa, nvidia_cg_toolkit
|
||||
{ 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";
|
||||
@@ -20,6 +34,14 @@ stdenv.mkDerivation rec {
|
||||
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; {
|
||||
|
||||
@@ -18,6 +18,9 @@ stdenv.mkDerivation {
|
||||
do
|
||||
$(ln -s $coreDir/*.so $out/lib/.)
|
||||
done)
|
||||
|
||||
ln -s -t $out ${retroarch}/share
|
||||
|
||||
makeWrapper ${retroarch}/bin/retroarch $out/bin/retroarch \
|
||||
--suffix-each LD_LIBRARY_PATH ':' "$cores" \
|
||||
--add-flags "-L $out/lib/ --menu" \
|
||||
|
||||
Reference in New Issue
Block a user