From ef2f2de53a4737febdd85ccd9ebcab926d2a4830 Mon Sep 17 00:00:00 2001 From: Sheena Artrip Date: Tue, 22 Mar 2016 01:35:20 -0400 Subject: [PATCH] mednaffe: init at 0.8 --- pkgs/misc/emulators/mednaffe/default.nix | 28 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/misc/emulators/mednaffe/default.nix diff --git a/pkgs/misc/emulators/mednaffe/default.nix b/pkgs/misc/emulators/mednaffe/default.nix new file mode 100644 index 000000000000..7777e73d3375 --- /dev/null +++ b/pkgs/misc/emulators/mednaffe/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 486583a2a1a6..c2a68176ebb7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };