Merge #29958: mednaffe: GTK3, correct license, etc.

This commit is contained in:
Vladimír Čunát 2017-10-01 11:07:51 +02:00
commit 45400d65b4
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 15 additions and 12 deletions

View File

@ -1,4 +1,7 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk2, mednafen }:
{ stdenv, fetchFromGitHub, makeWrapper, autoreconfHook, pkgconfig, wrapGAppsHook
, gtk2 ? null, gtk3 ? null, mednafen }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "mednaffe-${version}";
@ -11,19 +14,17 @@ stdenv.mkDerivation rec {
sha256 = "13l7gls430dcslpan39k0ymdnib2v6crdsmn6bs9k9g30nfnqi6m";
};
patchPhase = ''
substituteInPlace src/mednaffe.c \
--replace 'binpath = NULL' 'binpath = "${mednafen}/bin/mednafen"'
'';
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig wrapGAppsHook ];
buildInputs = [ gtk2 gtk3 mednafen ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ gtk2 mednafen ];
configureFlags = [ (enableFeature (gtk3 != null) "gtk3") ];
postInstall = "wrapProgram $out/bin/mednaffe --set PATH ${mednafen}/bin";
meta = with stdenv.lib; {
description = "A GTK based frontend for mednafen";
meta = {
description = "GTK-based frontend for mednafen emulator";
homepage = https://github.com/AmatCoder/mednaffe;
license = licenses.gpl3;
maintainers = with maintainers; [ sheenobu ];
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sheenobu yegortimoshenko ];
platforms = platforms.linux;
};
}

View File

@ -3265,7 +3265,9 @@ with pkgs;
mednafen-server = callPackage ../misc/emulators/mednafen/server.nix { };
mednaffe = callPackage ../misc/emulators/mednaffe/default.nix { };
mednaffe = callPackage ../misc/emulators/mednaffe/default.nix {
gtk2 = null;
};
megacli = callPackage ../tools/misc/megacli { };