sameboy: 0.13.6 -> 0.14
This commit is contained in:
parent
10652db906
commit
ded029fd0d
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sameboy";
|
pname = "sameboy";
|
||||||
version = "0.13.6";
|
version = "0.14";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LIJI32";
|
owner = "LIJI32";
|
||||||
repo = "SameBoy";
|
repo = "SameBoy";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "04w8lybi7ssnax37ka4qw7pmcm7cgnmk90p9m73zbyp5chgpqqzc";
|
sha256 = "1faggrp0hka0dy97n4skdcxj1fcv8dy072fpbpiw7144x0byy5mn";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -16,20 +16,22 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ rgbds glib wrapGAppsHook ];
|
nativeBuildInputs = [ rgbds glib wrapGAppsHook ];
|
||||||
buildInputs = [ SDL2 ];
|
buildInputs = [ SDL2 ];
|
||||||
|
|
||||||
makeFlags = "CONF=release DATA_DIR=$(out)/share/sameboy/";
|
makeFlags = [
|
||||||
|
"CONF=release"
|
||||||
|
"CAN_INSTALL=true"
|
||||||
|
"PREFIX=$(out)"
|
||||||
|
"DATA_DIR=$(out)/share/sameboy/"
|
||||||
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
sed 's/-Werror //g' -i Makefile
|
substituteInPlace Makefile \
|
||||||
sed 's@"libgtk-3.so"@"${gtk3}/lib/libgtk-3.so"@g' -i OpenDialog/gtk.c
|
--replace "-Werror " ""
|
||||||
|
substituteInPlace OpenDialog/gtk.c \
|
||||||
|
--replace '"libgtk-3.so"' '"${gtk3}/lib/libgtk-3.so"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
preInstall = ''
|
||||||
pushd build/bin/SDL
|
mkdir -p $out/bin
|
||||||
install -Dm755 sameboy $out/bin/sameboy
|
|
||||||
rm sameboy
|
|
||||||
mkdir -p $out/share/sameboy
|
|
||||||
cp -r * $out/share/sameboy
|
|
||||||
popd
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user