1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 SDL2,
7 udevCheckHook,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "linuxconsoletools";
12 version = "1.8.1";
13
14 src = fetchurl {
15 url = "mirror://sourceforge/linuxconsole/${pname}-${version}.tar.bz2";
16 sha256 = "sha256-TaKXRceCt9sY9fN8Sed78WMSHdN2Hi/HY2+gy/NcJFY=";
17 };
18
19 nativeBuildInputs = [
20 pkg-config
21 udevCheckHook
22 ];
23 buildInputs = [
24 SDL2
25 ];
26
27 makeFlags = [ "DESTDIR=$(out)" ];
28
29 installFlags = [ "PREFIX=\"\"" ];
30
31 doInstallCheck = true;
32
33 meta = with lib; {
34 homepage = "https://sourceforge.net/projects/linuxconsole/";
35 description = "Set of tools for joysticks and serial peripherals";
36 license = licenses.gpl2Plus;
37 platforms = platforms.linux;
38 maintainers = with maintainers; [
39 pSub
40 ebzzry
41 ];
42
43 longDescription = ''
44 The included tools are:
45
46 ffcfstress(1) - force-feedback stress test
47 ffmvforce(1) - force-feedback orientation test
48 ffset(1) - force-feedback configuration tool
49 fftest(1) - general force-feedback test
50 jstest(1) - joystick test
51 jscal(1) - joystick calibration tool
52 inputattach(1) - connects legacy serial devices to the input layer
53 '';
54 };
55}