nixpkgs/pkgs/by-name/yd/ydotool/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
970 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
cmake,
scdoc,
util-linux,
xorg,
}:
2019-10-29 13:43:07 +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";
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;
nativeBuildInputs = [
cmake
scdoc
];
meta = {
2019-10-29 13:43:07 +00:00
description = "Generic Linux command-line automation tool";
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
};
})