2023-02-16 17:41:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux, xorg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ydotool";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "1.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ReimuNotMoe";
|
|
|
|
repo = "ydotool";
|
2022-03-30 09:31:56 +00:00
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Daemon/ydotoold.c \
|
|
|
|
--replace "/usr/bin/xinput" "${xorg.xinput}/bin/xinput"
|
|
|
|
substituteInPlace Daemon/ydotool.service.in \
|
|
|
|
--replace "/usr/bin/kill" "${util-linux}/bin/kill"
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ cmake scdoc ];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generic Linux command-line automation tool";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ willibutz kraem ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|