diff options
author | Robin Gloster <mail@glob.in> | 2019-10-29 18:23:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-29 18:23:21 +0100 |
commit | e47da725fe952a16e7012f708340082abb2c02d9 (patch) | |
tree | ac62b0f892590fe7b745d1b43f5416d40688dc25 /pkgs/tools | |
parent | 9d3687ff1598024f03b39ab692973d8359f229cd (diff) | |
parent | 5330d56c3b5a9945d024938b2ae7dcad535a2df8 (diff) | |
download | nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.tar nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.tar.gz nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.tar.bz2 nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.tar.lz nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.tar.xz nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.tar.zst nixpkgs-e47da725fe952a16e7012f708340082abb2c02d9.zip |
Merge pull request #72252 from WilliButz/add-ydotool
ydotool: init at 0.1.8
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/wayland/ydotool/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/ydotool/default.nix b/pkgs/tools/wayland/ydotool/default.nix new file mode 100644 index 00000000000..d8b6ad4ff87 --- /dev/null +++ b/pkgs/tools/wayland/ydotool/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, pkgconfig, cmake, boost, libevdevplus, libuinputplus }: + +stdenv.mkDerivation rec { + pname = "ydotool"; + version = "0.1.8"; + + src = fetchFromGitHub { + owner = "ReimuNotMoe"; + repo = "ydotool"; + rev = "v${version}"; + sha256 = "0mx3636p0f8pznmwm4rlbwq7wrmjb2ygkf8b3a6ps96a7j1fw39l"; + }; + + # disable static linking + postPatch = '' + substituteInPlace CMakeLists.txt --replace \ + "-static" \ + "" + ''; + + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ + boost libevdevplus libuinputplus + ]; + + meta = with stdenv.lib; { + inherit (src.meta) homepage; + description = "Generic Linux command-line automation tool"; + license = licenses.mit; + maintainers = with maintainers; [ willibutz ]; + platforms = with platforms; linux; + }; +} |