diff options
author | Rommel M. Martinez <ebzzry@gmail.com> | 2016-05-17 14:09:33 +0800 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-05-17 08:09:33 +0200 |
commit | 7d06d451c3fcdfe97ee0037d7ec5c795752c513c (patch) | |
tree | 8f2265a449fed61e180aa6e9c15678a7aadec37f /pkgs/misc/drivers/moltengamepad | |
parent | f0f31a256f833f124d3af2433e46431e547a3fb2 (diff) |
moltengamepad-git: init at 2016-05-04 (#15462)
Diffstat (limited to 'pkgs/misc/drivers/moltengamepad')
-rw-r--r-- | pkgs/misc/drivers/moltengamepad/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/misc/drivers/moltengamepad/default.nix b/pkgs/misc/drivers/moltengamepad/default.nix new file mode 100644 index 000000000000..7cf70cf9555a --- /dev/null +++ b/pkgs/misc/drivers/moltengamepad/default.nix @@ -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 ]; + }; + +} |