nixpkgs/pkgs/tools/wayland/ydotool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
803 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }:
2019-10-29 13:43:07 +00:00
stdenv.mkDerivation rec {
pname = "ydotool";
2023-01-15 14:33:08 +00:00
version = "1.0.3";
2019-10-29 13:43:07 +00:00
src = fetchFromGitHub {
owner = "ReimuNotMoe";
repo = "ydotool";
2022-03-14 21:25:28 +00:00
rev = "v${version}";
2023-01-15 14:33:08 +00:00
sha256 = "sha256-RcPHQFXD3YgfF11OFpcnSowPlEjxy2c2RWhGYr30GhI=";
2019-10-29 13:43:07 +00:00
};
2022-05-09 14:18:15 +00:00
strictDeps = true;
nativeBuildInputs = [ cmake scdoc ];
postInstall = ''
substituteInPlace ${placeholder "out"}/lib/systemd/user/ydotool.service \
--replace /usr/bin/kill "${util-linux}/bin/kill"
'';
2019-10-29 13:43:07 +00:00
meta = with lib; {
homepage = "https://github.com/ReimuNotMoe/ydotool";
2019-10-29 13:43:07 +00:00
description = "Generic Linux command-line automation tool";
2022-03-14 21:25:28 +00:00
license = licenses.agpl3Plus;
maintainers = with maintainers; [ willibutz kraem ];
2019-10-29 13:43:07 +00:00
platforms = with platforms; linux;
};
}