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

30 lines
807 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk2, mednafen }:
2016-03-21 22:35:20 -07:00
stdenv.mkDerivation rec {
name = "mednaffe-${version}";
version = "0.8.6";
2016-03-21 22:35:20 -07:00
src = fetchFromGitHub {
owner = "AmatCoder";
repo = "mednaffe";
rev = "v${version}";
sha256 = "13l7gls430dcslpan39k0ymdnib2v6crdsmn6bs9k9g30nfnqi6m";
2016-03-21 22:35:20 -07:00
};
patchPhase = ''
substituteInPlace src/mednaffe.c \
--replace 'binpath = NULL' 'binpath = "${mednafen}/bin/mednafen"'
2016-03-21 22:35:20 -07:00
'';
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ gtk2 mednafen ];
2016-03-21 22:35:20 -07:00
meta = with stdenv.lib; {
description = "A GTK based frontend for mednafen";
homepage = https://github.com/AmatCoder/mednaffe;
license = licenses.gpl3;
maintainers = with maintainers; [ sheenobu ];
2016-03-21 22:35:20 -07:00
platforms = platforms.linux;
};
}