2024-05-08 18:22:34 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
scdoc,
|
|
|
|
util-linux,
|
|
|
|
xorg,
|
|
|
|
}:
|
2019-10-29 13:43:07 +00:00
|
|
|
|
2024-05-08 18:22:34 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-10-29 13:43:07 +00:00
|
|
|
pname = "ydotool";
|
2023-02-11 16:26:04 +00:00
|
|
|
version = "1.0.4";
|
2019-10-29 13:43:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ReimuNotMoe";
|
|
|
|
repo = "ydotool";
|
2024-05-08 18:22:34 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-02-11 16:26:04 +00:00
|
|
|
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
|
2019-10-29 13:43:07 +00:00
|
|
|
};
|
|
|
|
|
2023-02-11 16:26:04 +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-09 14:18:15 +00:00
|
|
|
strictDeps = true;
|
2024-05-08 18:22:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
scdoc
|
|
|
|
];
|
2022-03-28 14:44:02 +00:00
|
|
|
|
2024-05-08 18:22:34 +00:00
|
|
|
meta = {
|
2019-10-29 13:43:07 +00:00
|
|
|
description = "Generic Linux command-line automation tool";
|
2024-05-08 18:22:34 +00:00
|
|
|
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
mainProgram = "ydotool";
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
willibutz
|
|
|
|
kraem
|
|
|
|
];
|
|
|
|
platforms = lib.platforms.linux;
|
2019-10-29 13:43:07 +00:00
|
|
|
};
|
2024-05-08 18:22:34 +00:00
|
|
|
})
|