fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 scdoc,
7 util-linux,
8 xorg,
9 nixosTests,
10}:
11
12stdenv.mkDerivation (finalAttrs: {
13 pname = "ydotool";
14 version = "1.0.4";
15
16 src = fetchFromGitHub {
17 owner = "ReimuNotMoe";
18 repo = "ydotool";
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
21 };
22
23 postPatch = ''
24 substituteInPlace Daemon/ydotoold.c \
25 --replace "/usr/bin/xinput" "${xorg.xinput}/bin/xinput"
26 substituteInPlace Daemon/ydotool.service.in \
27 --replace "/usr/bin/kill" "${util-linux}/bin/kill"
28 '';
29
30 strictDeps = true;
31 nativeBuildInputs = [
32 cmake
33 scdoc
34 ];
35
36 passthru.tests.basic = nixosTests.ydotool;
37
38 meta = {
39 description = "Generic Linux command-line automation tool";
40 homepage = "https://github.com/ReimuNotMoe/ydotool";
41 license = lib.licenses.agpl3Plus;
42 mainProgram = "ydotool";
43 maintainers = with lib.maintainers; [
44 kraem
45 ];
46 platforms = lib.platforms.linux;
47 };
48})