moltengamepad-git: init at 2016-05-04 (#15462)

This commit is contained in:
Rommel M. Martinez 2016-05-17 14:09:33 +08:00 committed by Franz Pletz
parent f0f31a256f
commit 7d06d451c3
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, libudev }:
stdenv.mkDerivation rec {
name = "moltengamepad-git-${version}";
version = "2016-05-04";
src = fetchFromGitHub {
owner = "jgeumlek";
repo = "MoltenGamepad";
rev = "6656357964c22be97227fc5353b53c6ab1e69929";
sha256 = "05cpxfzxgm86kxx0a9f76bshjwpz9w1g8bn30ib1i5a3fv7bmirl";
};
buildInputs = [ libudev ];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
cp moltengamepad $out/bin
'';
patchPhase = ''
sed -i -e '159d;161d;472d;473d;474d;475d' source/eventlists/key_list.cpp
'';
meta = with stdenv.lib; {
homepage = https://github.com/jgeumlek/MoltenGamepad;
description = "Flexible Linux input device translator, geared for gamepads";
license = licenses.mit;
maintainers = [ maintainers.ebzzry ];
};
}

View file

@ -16452,6 +16452,8 @@ in
inherit (pkgs.gnome) GConf;
};
moltengamepad = callPackage ../misc/drivers/moltengamepad { };
mongoc = callPackage ../development/libraries/mongoc { };
mupen64plus = callPackage ../misc/emulators/mupen64plus {