Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, udev }:
2
3stdenv.mkDerivation {
4 pname = "moltengamepad";
5 version = "unstable-2016-05-04";
6
7 src = fetchFromGitHub {
8 owner = "jgeumlek";
9 repo = "MoltenGamepad";
10 rev = "6656357964c22be97227fc5353b53c6ab1e69929";
11 sha256 = "05cpxfzxgm86kxx0a9f76bshjwpz9w1g8bn30ib1i5a3fv7bmirl";
12 };
13
14 hardeningDisable = [ "format" ];
15
16 buildInputs = [ udev ];
17
18 buildPhase = ''
19 make
20 '';
21
22 installPhase = ''
23 mkdir -p $out/bin
24 cp moltengamepad $out/bin
25 '';
26
27 patchPhase = ''
28 sed -i -e '159d;161d;472d;473d;474d;475d' source/eventlists/key_list.cpp
29 '';
30
31 meta = with lib; {
32 homepage = "https://github.com/jgeumlek/MoltenGamepad";
33 description = "Flexible Linux input device translator, geared for gamepads";
34 license = licenses.mit;
35 maintainers = [ maintainers.ebzzry ];
36 platforms = platforms.linux;
37 };
38
39}