nixpkgs/pkgs/misc/emulators/mednaffe/default.nix

29 lines
734 B
Nix
Raw Normal View History

2016-03-22 08:35:20 +03:00
{ 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 = ''
2016-05-25 09:30:40 +03:00
substituteInPlace src/mednaffe.c --replace "binpath = NULL" "binpath = g_strdup( \"${mednafen}/bin/mednafen\" )"
2016-03-22 08:35:20 +03:00
'';
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;
};
}