@@ -1,41 +1,26 @@
1−{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, boost, libevdevplus, libuinputplus, iodash, cxxopts}:
1+{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, scdoc }:
22
33stdenv.mkDerivation rec {
44 pname = "ydotool";
5− version = "unstable-2021-01-20";
5+ version = "1.0.1";
66
77 src = fetchFromGitHub {
88 owner = "ReimuNotMoe";
99 repo = "ydotool";
10− rev = "b1d041f52f7bac364d6539b1251d29c3b77c0f37";
11− sha256 = "1gzdbx6fv0dbcyia3yyzhv93az2gf90aszb9kcj5cnxywfpv9w9g";
10+ rev = "v${version}";
11+ sha256 = "sha256-maXXGCqB8dkGO8956hsKSwM4HQdYn6z1jBFENQ9sKcA=";
1212 };
1313
14− # upstream decided to use a cpp package manager called cpm.
15− # we need to disable that because it wants networking, furthermore,
16− # it does some system folder creating which also needs to be disabled.
17− # Both changes are to respect the sandbox.
18− patches = [ ./fixup-cmakelists.patch ];
19−
20−
21− # cxxopts is a header only library.
22− # See pull request: https://github.com/ReimuNotMoe/ydotool/pull/105
23− postPatch = ''
24− substituteInPlace CMakeLists.txt --replace \
25− "PUBLIC cxxopts" \
26− "PUBLIC"
27− '';
28−
2914 nativeBuildInputs = [ cmake pkg-config ];
3015 buildInputs = [
31− boost libevdevplus libuinputplus iodash cxxopts
16+ scdoc
3217 ];
3318
3419 meta = with lib; {
3520 inherit (src.meta) homepage;
3621 description = "Generic Linux command-line automation tool";
37− license = licenses.mit;
38− maintainers = with maintainers; [ willibutz ];
22+ license = licenses.agpl3Plus;
23+ maintainers = with maintainers; [ willibutz kraem ];
3924 platforms = with platforms; linux;
4025 };
4126}