mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #14114 from sheenobu/mednaffe/newpkg
mednaffe: init at 0.8
This commit is contained in:
commit
ebd6566534
2 changed files with 30 additions and 0 deletions
28
pkgs/misc/emulators/mednaffe/default.nix
Normal file
28
pkgs/misc/emulators/mednaffe/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue