17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
25 sha256 = "1qlz55fp4i9dd8sdwmy1m8i4i1jy1s09cpmlxzrgf7v34w72ncm7";
34 if stdenv.hostPlatform.isDarwin then
62 # We build the tests, but they're only installed when using the "test" output.
63 # This will produce a "uiohook_tests" binary which can be run to test the
64 # functionality of the library on the current system.
65 # Running the test binary requires a running X11 session.
67 "-DENABLE_TEST:BOOL=ON"
72 cp ./uiohook_tests $test/share
76 description = "C library to provide global keyboard and mouse hooks from userland";
77 homepage = "https://github.com/kwhat/libuiohook";
78 license = licenses.gpl3Only;
79 platforms = platforms.all;
80 maintainers = with maintainers; [ anoa ];
83 passthru.tests.libuiohook = nixosTests.libuiohook;