12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
17 owner = "ReimuNotMoe";
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
24 substituteInPlace Daemon/ydotoold.c \
25 --replace "/usr/bin/xinput" "${xorg.xinput}/bin/xinput"
26 substituteInPlace Daemon/ydotool.service.in \
27 --replace "/usr/bin/kill" "${util-linux}/bin/kill"
36 passthru.tests.basic = nixosTests.ydotool;
39 description = "Generic Linux command-line automation tool";
40 homepage = "https://github.com/ReimuNotMoe/ydotool";
41 license = lib.licenses.agpl3Plus;
42 mainProgram = "ydotool";
43 maintainers = with lib.maintainers; [
47 platforms = lib.platforms.linux;