push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
diff --git a/dotoolc b/dotoolc
index e2f7bba..6d1879e 100755
--- a/dotoolc
+++ b/dotoolc
@@ -7,7 +7,7 @@ is $DOTOOL_PIPE else /tmp/dotool-pipe.' >&2
fi
fifo_being_read(){
- [ -p "$1" ] && /bin/echo 1<>"$1" >"$1"
+ [ -p "$1" ] && echo 1<>"$1" >"$1"
}
p="${DOTOOL_PIPE:-/tmp/dotool-pipe}"
diff --git a/dotoold b/dotoold
index 48a7789..c405312 100755
--- a/dotoold
+++ b/dotoold
@@ -12,7 +12,7 @@ for the pipe is $DOTOOL_PIPE else /tmp/dotool-pipe.' >&2
done
fifo_being_read(){
- [ -p "$1" ] && /bin/echo 1<>"$1" >"$1"
+ [ -p "$1" ] && echo 1<>"$1" >"$1"
}
p="${DOTOOL_PIPE:-/tmp/dotool-pipe}"
@@ -25,5 +25,5 @@ fi
rm -f -- "$p" || exit 1
trap 'rm -f -- "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
mkfifo -m 660 "$p" || exit 1
-dotool "$@" <> "$p" &
+@dotool@ "$@" <> "$p" &
wait $!

View File

@@ -0,0 +1,59 @@
{
lib,
buildGoModule,
fetchFromSourcehut,
libxkbcommon,
pkg-config,
installShellFiles,
scdoc,
}:
buildGoModule rec {
pname = "dotool";
version = "1.5";
src = fetchFromSourcehut {
owner = "~geb";
repo = "dotool";
rev = version;
hash = "sha256-4QmTHeU3TnpRATKIvilkIA3i2hDjM5zQwSvmRvoWuNE=";
};
vendorHash = "sha256-IQ847LHDYJPboWL/6lQNJ4vPPD/+xkrGI2LSZ7kBnp4=";
# uses nix store path for the dotool binary
# also replaces /bin/echo with echo
patches = [ ./fix-paths.patch ];
postPatch = ''
substituteInPlace ./dotoold --replace "@dotool@" "$out/bin/dotool"
'';
buildInputs = [ libxkbcommon ];
nativeBuildInputs = [
installShellFiles
pkg-config
scdoc
];
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
postInstall = ''
mkdir -p $out/bin
cp ./dotoold ./dotoolc $out/bin
scdoc < doc/dotool.1.scd > doc/dotool.1
installManPage doc/dotool.1
'';
meta = {
description = "Command to simulate input anywhere";
homepage = "https://git.sr.ht/~geb/dotool";
changelog = "https://git.sr.ht/~geb/dotool/tree/${version}/item/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dit7ya ];
};
}