ares: 126 -> 127

This commit is contained in:
Madoura 2022-05-09 12:05:23 -05:00
parent 03d73ba0c5
commit c36d585e14
No known key found for this signature in database
GPG key ID: 59B6B50D67575615
2 changed files with 58 additions and 47 deletions

View file

@ -2,83 +2,72 @@
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, pkg-config , pkg-config
, alsa-lib
, gtksourceview3
, libXv
, openal
, libpulseaudio
, libao
, udev
, SDL2 , SDL2
, alsa-lib
, gtk3
, gtksourceview3
, libGL
, libGLU
, libX11
, libXv
, libao
, libpulseaudio
, openal
, udev
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ares"; pname = "ares";
version = "126"; version = "127";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ares-emulator"; owner = "ares-emulator";
repo = "ares"; repo = "ares";
rev = "v${version}"; rev = "v${version}";
sha256 = "1rj4vmz8lvpmfc6wni7222kagnw9f6jda9rcb6qky2kpizlp2d24"; sha256 = "0rhq39w41j9yr1fkyfmf4n6fjxnq1cglj98rp4wys12kwqv7smvx";
};
parallel-rdp = fetchFromGitHub {
owner = "Themaister";
repo = "parallel-rdp-standalone";
rev = "0dcebe11ee79288441e40e145c8f340d81f52316";
sha256 = "1avp4wyfkhk5yfjqx5w3jbqghn2mq5la7k9248kjmnp9n9lip6w9";
}; };
patches = [ patches = [
./dont-rebuild-on-install.patch
./fix-ruby.patch ./fix-ruby.patch
]; ];
enableParallelBuilding = true;
dontConfigure = true;
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
]; ];
buildInputs = [ buildInputs = [
alsa-lib
gtksourceview3
libXv
openal
libpulseaudio
libao
udev
SDL2 SDL2
alsa-lib
gtk3
gtksourceview3
libGL
libGLU
libX11
libXv
libao
libpulseaudio
openal
udev
]; ];
buildPhase = '' enableParallelBuilding = true;
runHook preBuild
rm -rf ares/n64/vulkan/parallel-rdp makeFlags = [
ln -sf ${parallel-rdp} ares/n64/vulkan/parallel-rdp "-C desktop-ui"
make -C desktop-ui -j $NIX_BUILD_CORES openmp=true vulkan=true local=false hiro=gtk3 "local=false"
"openmp=true"
runHook postBuild "hiro=gtk3"
''; "prefix=$(out)"
];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/{applications,ares,pixmaps}}
cp desktop-ui/out/ares $out/bin
cp desktop-ui/resource/ares.desktop $out/share/applications
cp desktop-ui/resource/{ares{.ico,.png},font.png} $out/share/pixmaps
cp -r ares/{Shaders,System} $out/share/ares
runHook postInstall
'';
meta = with lib; { meta = with lib; {
homepage = "https://ares.dev"; homepage = "https://ares.dev";
description = "Open-source multi-system emulator with a focus on accuracy and preservation"; description = "Open-source multi-system emulator with a focus on accuracy and preservation";
license = licenses.isc; license = licenses.isc;
maintainers = with maintainers; [ Madouura ]; maintainers = with maintainers; [ Madouura ];
platforms = platforms.all; platforms = platforms.linux;
}; };
} }
# TODO: select between Qt, GTK2 and GTK3
# TODO: support Darwin

View file

@ -0,0 +1,22 @@
From 65cc7647110edd768e7baa7991143014316e655a Mon Sep 17 00:00:00 2001
From: Madoura <93990818+Madouura@users.noreply.github.com>
Date: Mon, 9 May 2022 10:17:06 -0500
Subject: [PATCH] Update GNUmakefile
---
desktop-ui/GNUmakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/desktop-ui/GNUmakefile b/desktop-ui/GNUmakefile
index 8e27b11d3..0bee561fb 100644
--- a/desktop-ui/GNUmakefile
+++ b/desktop-ui/GNUmakefile
@@ -106,7 +106,7 @@ endif
$(call rdelete,$(object.path))
$(call rdelete,$(output.path))
-install: all
+install:
ifeq ($(platform),windows)
$(call mkdir,$(prefix)/$(name)/)
else ifeq ($(shell id -un),root)