2021-01-17 09:17:16 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, boost, libevdevplus, libuinputplus }:
|
2019-10-29 13:43:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ydotool";
|
|
|
|
version = "0.1.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ReimuNotMoe";
|
|
|
|
repo = "ydotool";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0mx3636p0f8pznmwm4rlbwq7wrmjb2ygkf8b3a6ps96a7j1fw39l";
|
|
|
|
};
|
|
|
|
|
|
|
|
# disable static linking
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace \
|
|
|
|
"-static" \
|
|
|
|
""
|
|
|
|
'';
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-10-29 13:43:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost libevdevplus libuinputplus
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-29 13:43:07 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Generic Linux command-line automation tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|