summary refs log tree commit diff
path: root/pkgs/tools/wayland/ydotool/default.nix
blob: 319a9249f0a4fbbd8e5e1b46b4b0b786a1c0052f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }:

stdenv.mkDerivation rec {
  pname = "ydotool";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "ReimuNotMoe";
    repo = "ydotool";
    rev = "v${version}";
    sha256 = "sha256-RcPHQFXD3YgfF11OFpcnSowPlEjxy2c2RWhGYr30GhI=";
  };

  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";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ willibutz kraem ];
    platforms = with platforms; linux;
  };
}