1 { lib, stdenv, fetchFromGitHub, libXi, xorgproto, autoconf, automake, libtool, m4, pkg-config, xorg }:
3 stdenv.mkDerivation rec {
4 pname = "xinput_calibrator";
7 src = fetchFromGitHub {
9 repo = "xinput_calibrator";
11 sha256 = "5ZkNw+CKNUcPt1PY5PLzB/OT2wcf5n3UcaQlmMcwRVE=";
14 preConfigure = "./autogen.sh --with-gui=X11";
16 nativeBuildInputs = [ pkg-config autoconf automake ];
17 buildInputs = [ xorgproto libXi libtool m4 xorg.libX11 xorg.libXext ];
20 homepage = "https://github.com/tias/xinput_calibrator";
21 description = "Generic touchscreen calibration program for X.Org";
22 license = lib.licenses.mit;
23 maintainers = [ lib.maintainers.flosse ];
24 platforms = lib.platforms.linux;
25 mainProgram = "xinput_calibrator";