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