ydotool: 1.0.3 -> 1.0.4

+10 -8
+10 -8
pkgs/tools/wayland/ydotool/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }: 1 + { lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux, xorg }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ydotool"; 5 - version = "1.0.3"; 5 + version = "1.0.4"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "ReimuNotMoe"; 9 9 repo = "ydotool"; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-RcPHQFXD3YgfF11OFpcnSowPlEjxy2c2RWhGYr30GhI="; 11 + hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng="; 12 12 }; 13 13 14 + postPatch = '' 15 + substituteInPlace Daemon/ydotoold.c \ 16 + --replace "/usr/bin/xinput" "${xorg.xinput}/bin/xinput" 17 + substituteInPlace Daemon/ydotool.service.in \ 18 + --replace "/usr/bin/kill" "${util-linux}/bin/kill" 19 + ''; 20 + 14 21 strictDeps = true; 15 22 nativeBuildInputs = [ cmake scdoc ]; 16 - 17 - postInstall = '' 18 - substituteInPlace ${placeholder "out"}/lib/systemd/user/ydotool.service \ 19 - --replace /usr/bin/kill "${util-linux}/bin/kill" 20 - ''; 21 23 22 24 meta = with lib; { 23 25 homepage = "https://github.com/ReimuNotMoe/ydotool";