@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, cmake, boost, libevdevplus, libuinputplus }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "ydotool";
5+ version = "0.1.8";
6+
7+ src = fetchFromGitHub {
8+ owner = "ReimuNotMoe";
9+ repo = "ydotool";
10+ rev = "v${version}";
11+ sha256 = "0mx3636p0f8pznmwm4rlbwq7wrmjb2ygkf8b3a6ps96a7j1fw39l";
12+ };
13+
14+ # disable static linking
15+ postPatch = ''
16+ substituteInPlace CMakeLists.txt --replace \
17+ "-static" \
18+ ""
19+ '';
20+
21+ nativeBuildInputs = [ cmake pkgconfig ];
22+ buildInputs = [
23+ boost libevdevplus libuinputplus
24+ ];
25+
26+ meta = with stdenv.lib; {
27+ inherit (src.meta) homepage;
28+ description = "Generic Linux command-line automation tool";
29+ license = licenses.mit;
30+ maintainers = with maintainers; [ willibutz ];
31+ platforms = with platforms; linux;
32+ };
33+}