diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-02-11 17:26:04 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-02-11 17:26:04 +0100 |
commit | 3927f4fcbd1016ed57f96db869accc5b1423da70 (patch) | |
tree | c202331beb4be4c0f366b9145e92ae87f74f6251 | |
parent | 131dc7a1dc30640ff4b494559cf3a0b02ffa95de (diff) | |
download | nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.tar nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.tar.gz nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.tar.bz2 nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.tar.lz nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.tar.xz nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.tar.zst nixpkgs-3927f4fcbd1016ed57f96db869accc5b1423da70.zip |
ydotool: 1.0.3 -> 1.0.4
-rw-r--r-- | pkgs/tools/wayland/ydotool/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/tools/wayland/ydotool/default.nix b/pkgs/tools/wayland/ydotool/default.nix index 319a9249f0a..42f95735de5 100644 --- a/pkgs/tools/wayland/ydotool/default.nix +++ b/pkgs/tools/wayland/ydotool/default.nix @@ -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"; |