1 { stdenv, lib, fetchFromGitHub, cmake, libX11, Cocoa, IOKit, Kernel }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-ir6p+Tzf8L5VOW/rsG4yelsth7INbhABO2T7pfMHcFo=";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = lib.optionals stdenv.isLinux [ libX11 ]
17 ++ lib.optionals stdenv.isDarwin [ Cocoa IOKit Kernel ];
20 "-DCMAKE_INSTALL_LIBDIR=lib"
24 description = "Object-oriented C++ input system";
25 maintainers = [ maintainers.raskin ];
26 platforms = platforms.unix;
27 license = licenses.zlib;