2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ydotool";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ReimuNotMoe";
|
|
|
|
repo = "ydotool";
|
2022-03-30 09:31:56 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-maXXGCqB8dkGO8956hsKSwM4HQdYn6z1jBFENQ9sKcA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ cmake scdoc ];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace ${placeholder "out"}/lib/systemd/user/ydotool.service \
|
|
|
|
--replace /usr/bin/kill "${util-linux}/bin/kill"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generic Linux command-line automation tool";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ willibutz kraem ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|