diff options
author | Jappie Klooster <jappieklooster@hotmail.com> | 2021-04-02 16:47:34 -0400 |
---|---|---|
committer | Jappie Klooster <jappieklooster@hotmail.com> | 2021-04-03 11:02:15 -0400 |
commit | a0d817b48f151ef7877e921ed490771ae56bf283 (patch) | |
tree | 6896ce7740319cf1e0341279a96f76ca86f70c46 /pkgs/tools/wayland/ydotool/default.nix | |
parent | 584490f6809daa3d68c7200e95d9ebf714d60e0a (diff) | |
download | nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.tar nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.tar.gz nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.tar.bz2 nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.tar.lz nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.tar.xz nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.tar.zst nixpkgs-a0d817b48f151ef7877e921ed490771ae56bf283.zip |
ydotool: 0.1.8 -> 2021-01-20
Upgrading ydotool gives two big features: 1. support for sleep, making it easier to combine with sway 2. recording support. Allowing you to record macros! This does however make the daemon a bit unstable, I had it crash on my when trying to type. However the daemon is optional, and this is an upstream issue. So I think it's a good change. Furthermore several libraries are upgraded with this change as well, they all seem to be used and maintained by the same authors. readd rec block to ydotool Update pkgs/tools/wayland/ydotool/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/tools/wayland/ydotool/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Update pkgs/tools/wayland/ydotool/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/wayland/ydotool/default.nix')
-rw-r--r-- | pkgs/tools/wayland/ydotool/default.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/tools/wayland/ydotool/default.nix b/pkgs/tools/wayland/ydotool/default.nix index 76ebd225006..4a75eac8c57 100644 --- a/pkgs/tools/wayland/ydotool/default.nix +++ b/pkgs/tools/wayland/ydotool/default.nix @@ -1,26 +1,34 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, boost, libevdevplus, libuinputplus }: +{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, boost, libevdevplus, libuinputplus, iodash, cxxopts}: stdenv.mkDerivation rec { pname = "ydotool"; - version = "0.1.8"; + version = "unstable-2021-01-20"; src = fetchFromGitHub { owner = "ReimuNotMoe"; repo = "ydotool"; - rev = "v${version}"; - sha256 = "0mx3636p0f8pznmwm4rlbwq7wrmjb2ygkf8b3a6ps96a7j1fw39l"; + rev = "b1d041f52f7bac364d6539b1251d29c3b77c0f37"; + sha256 = "1gzdbx6fv0dbcyia3yyzhv93az2gf90aszb9kcj5cnxywfpv9w9g"; }; - # disable static linking + # upstream decided to use a cpp package manager called cpm. + # we need to disable that because it wants networking, furthermore, + # it does some system folder creating which also needs to be disabled. + # Both changes are to respect the sandbox. + patches = [ ./fixup-cmakelists.patch ]; + + + # cxxopts is a header only library. + # See pull request: https://github.com/ReimuNotMoe/ydotool/pull/105 postPatch = '' substituteInPlace CMakeLists.txt --replace \ - "-static" \ - "" + "PUBLIC cxxopts" \ + "PUBLIC" ''; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ - boost libevdevplus libuinputplus + boost libevdevplus libuinputplus iodash cxxopts ]; meta = with lib; { |