2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, udev }:
|
2016-05-17 06:09:33 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-11-10 21:21:47 +00:00
|
|
|
pname = "moltengamepad";
|
|
|
|
version = "unstable-2016-05-04";
|
2016-05-17 06:09:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgeumlek";
|
|
|
|
repo = "MoltenGamepad";
|
|
|
|
rev = "6656357964c22be97227fc5353b53c6ab1e69929";
|
|
|
|
sha256 = "05cpxfzxgm86kxx0a9f76bshjwpz9w1g8bn30ib1i5a3fv7bmirl";
|
|
|
|
};
|
|
|
|
|
2016-08-25 01:35:57 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2018-07-17 20:11:16 +00:00
|
|
|
buildInputs = [ udev ];
|
2016-05-17 06:09:33 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jgeumlek/MoltenGamepad";
|
2016-05-17 06:09:33 +00:00
|
|
|
description = "Flexible Linux input device translator, geared for gamepads";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2016-05-17 06:09:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|