sameboy: 0.14 -> 0.14.1

This commit is contained in:
Jakub Kądziołka 2021-02-28 16:42:53 +01:00
parent ded029fd0d
commit 5a07a69000
No known key found for this signature in database
GPG Key ID: E315A75846131564

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sameboy"; pname = "sameboy";
version = "0.14"; version = "0.14.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "LIJI32"; owner = "LIJI32";
repo = "SameBoy"; repo = "SameBoy";
rev = "v${version}"; rev = "v${version}";
sha256 = "1faggrp0hka0dy97n4skdcxj1fcv8dy072fpbpiw7144x0byy5mn"; sha256 = "0h42cixbf0m2qiwrqzygh0x166h9ikxa5dzi3jbqld2dygk932n7";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;
@ -18,22 +18,15 @@ stdenv.mkDerivation rec {
makeFlags = [ makeFlags = [
"CONF=release" "CONF=release"
"CAN_INSTALL=true" "FREEDESKTOP=true"
"PREFIX=$(out)" "PREFIX=$(out)"
"DATA_DIR=$(out)/share/sameboy/"
]; ];
postPatch = '' postPatch = ''
substituteInPlace Makefile \
--replace "-Werror " ""
substituteInPlace OpenDialog/gtk.c \ substituteInPlace OpenDialog/gtk.c \
--replace '"libgtk-3.so"' '"${gtk3}/lib/libgtk-3.so"' --replace '"libgtk-3.so"' '"${gtk3}/lib/libgtk-3.so"'
''; '';
preInstall = ''
mkdir -p $out/bin
'';
meta = with lib; { meta = with lib; {
homepage = "https://sameboy.github.io"; homepage = "https://sameboy.github.io";
description = "Game Boy, Game Boy Color, and Super Game Boy emulator"; description = "Game Boy, Game Boy Color, and Super Game Boy emulator";