14 src = fetchFromSourcehut {
18 hash = "sha256-4QmTHeU3TnpRATKIvilkIA3i2hDjM5zQwSvmRvoWuNE=";
21 vendorHash = "sha256-IQ847LHDYJPboWL/6lQNJ4vPPD/+xkrGI2LSZ7kBnp4=";
23 # uses nix store path for the dotool binary
24 # also replaces /bin/echo with echo
25 patches = [ ./fix-paths.patch ];
28 substituteInPlace ./dotoold --replace "@dotool@" "$out/bin/dotool"
31 buildInputs = [ libxkbcommon ];
32 nativeBuildInputs = [ installShellFiles pkg-config scdoc ];
34 ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
38 cp ./dotoold ./dotoolc $out/bin
39 scdoc < doc/dotool.1.scd > doc/dotool.1
40 installManPage doc/dotool.1
44 description = "Command to simulate input anywhere";
45 homepage = "https://git.sr.ht/~geb/dotool";
46 changelog = "https://git.sr.ht/~geb/dotool/tree/${version}/item/CHANGELOG.md";
47 license = licenses.gpl3Only;
48 maintainers = with maintainers; [ dit7ya ];