tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ydotool: 1.0.3 -> 1.0.4
Weijia Wang
3 years ago
3927f4fc
131dc7a1
+10
-8
1 changed file
expand all
collapse all
unified
split
pkgs
tools
wayland
ydotool
default.nix
+10
-8
pkgs/tools/wayland/ydotool/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }:
1
1
+
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux, xorg }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "ydotool";
5
5
-
version = "1.0.3";
5
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
11
-
sha256 = "sha256-RcPHQFXD3YgfF11OFpcnSowPlEjxy2c2RWhGYr30GhI=";
11
11
+
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
12
12
};
13
13
14
14
+
postPatch = ''
15
15
+
substituteInPlace Daemon/ydotoold.c \
16
16
+
--replace "/usr/bin/xinput" "${xorg.xinput}/bin/xinput"
17
17
+
substituteInPlace Daemon/ydotool.service.in \
18
18
+
--replace "/usr/bin/kill" "${util-linux}/bin/kill"
19
19
+
'';
20
20
+
14
21
strictDeps = true;
15
22
nativeBuildInputs = [ cmake scdoc ];
16
16
-
17
17
-
postInstall = ''
18
18
-
substituteInPlace ${placeholder "out"}/lib/systemd/user/ydotool.service \
19
19
-
--replace /usr/bin/kill "${util-linux}/bin/kill"
20
20
-
'';
21
23
22
24
meta = with lib; {
23
25
homepage = "https://github.com/ReimuNotMoe/ydotool";