1{ stdenv, fetchurl, SDL }:
2
3stdenv.mkDerivation rec {
4 name = "linuxconsoletools-${version}";
5 version = "1.6.0";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/linuxconsole/${name}.tar.bz2";
9 sha256 = "0il1m8pgw8f6b8qid035ixamv0w5fgh9pinx5vw4ayxn03nyzlnf";
10 };
11
12 buildInputs = [ SDL ];
13
14 makeFlags = [ "DESTDIR=$(out)"];
15
16 installFlags = ''PREFIX=""'';
17
18 meta = with stdenv.lib; {
19 homepage = https://sourceforge.net/projects/linuxconsole/;
20 description = "A set of tools for joysticks and serial peripherals";
21 license = licenses.gpl2Plus;
22 platforms = platforms.linux;
23 maintainers = with maintainers; [ pSub ebzzry ];
24
25 longDescription = ''
26 The included tools are:
27
28 ffcfstress(1) - force-feedback stress test
29 ffmvforce(1) - force-feedback orientation test
30 ffset(1) - force-feedback configuration tool
31 fftest(1) - general force-feedback test
32 jstest(1) - joystick test
33 jscal(1) - joystick calibration tool
34 inputattach(1) - connects legacy serial devices to the input layer
35 '';
36 };
37}