1{ lib, stdenv, fetchurl, SDL }:
2
3stdenv.mkDerivation rec {
4 pname = "linuxconsoletools";
5 version = "1.6.1";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/linuxconsole/${pname}-${version}.tar.bz2";
9 sha256 = "0d2r3j916fl2y7pk1y82b9fvbr10dgs1gw7rqwzfpispdidb1mp9";
10 };
11
12 buildInputs = [ SDL ];
13
14 makeFlags = [ "DESTDIR=$(out)"];
15
16 installFlags = [ "PREFIX=\"\"" ];
17
18 meta = with 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}