Skip to content

Commit

Permalink
Merge pull request #215849 from wegank/ydotool-bump
Browse files Browse the repository at this point in the history
ydotool: 1.0.3 -> 1.0.4
  • Loading branch information
figsoda authored Feb 11, 2023
2 parents 0c8b734 + 3927f4f commit 6d87734
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pkgs/tools/wayland/ydotool/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }:
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux, xorg }:

stdenv.mkDerivation rec {
pname = "ydotool";
version = "1.0.3";
version = "1.0.4";

src = fetchFromGitHub {
owner = "ReimuNotMoe";
repo = "ydotool";
rev = "v${version}";
sha256 = "sha256-RcPHQFXD3YgfF11OFpcnSowPlEjxy2c2RWhGYr30GhI=";
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
};

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"
'';

strictDeps = true;
nativeBuildInputs = [ cmake scdoc ];

postInstall = ''
substituteInPlace ${placeholder "out"}/lib/systemd/user/ydotool.service \
--replace /usr/bin/kill "${util-linux}/bin/kill"
'';

meta = with lib; {
homepage = "https://github.com/ReimuNotMoe/ydotool";
description = "Generic Linux command-line automation tool";
Expand Down

0 comments on commit 6d87734

Please sign in to comment.