Merge pull request #14114 from sheenobu/mednaffe/newpkg

mednaffe: init at 0.8
This commit is contained in:
joachifm 2016-03-23 04:48:32 +00:00
commit ebd6566534
2 changed files with 30 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -2428,6 +2428,8 @@ let
mednafen-server = callPackage ../misc/emulators/mednafen/server.nix { };
mednaffe = callPackage ../misc/emulators/mednaffe/default.nix { };
megacli = callPackage ../tools/misc/megacli { };
megatools = callPackage ../tools/networking/megatools { };