ydotool: 1.0.3 -> 1.0.4
This commit is contained in:
parent
131dc7a1dc
commit
3927f4fcbd
|
@ -1,24 +1,26 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }:
|
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux, xorg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ydotool";
|
pname = "ydotool";
|
||||||
version = "1.0.3";
|
version = "1.0.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ReimuNotMoe";
|
owner = "ReimuNotMoe";
|
||||||
repo = "ydotool";
|
repo = "ydotool";
|
||||||
rev = "v${version}";
|
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;
|
strictDeps = true;
|
||||||
nativeBuildInputs = [ cmake scdoc ];
|
nativeBuildInputs = [ cmake scdoc ];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
substituteInPlace ${placeholder "out"}/lib/systemd/user/ydotool.service \
|
|
||||||
--replace /usr/bin/kill "${util-linux}/bin/kill"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
||||||
description = "Generic Linux command-line automation tool";
|
description = "Generic Linux command-line automation tool";
|
||||||
|
|
Loading…
Reference in a new issue