git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #72252 from WilliButz/add-ydotool

ydotool: init at 0.1.8

commite47da725fe952a16e7012f708340082abb2c02d9 authorRobin Gloster <mail@glob.in> dateTue 29 Oct 2019, 18:23 (7 years ago) parent9d3687f5330d56
4 files changed+85
pkgs/development/libraries/libevdevplus/default.nix+23 pkgs/development/libraries/libuinputplus/default.nix+23 pkgs/tools/wayland/ydotool/default.nix+33 pkgs/top-level/all-packages.nix+6
pkgs/development/libraries/libevdevplus/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "libevdevplus";
5+ version = "2019-10-01";
6+
7+ src = fetchFromGitHub {
8+ owner = "YukiWorkshop";
9+ repo = "libevdevPlus";
10+ rev = "e863df2ade43e2c7d7748cc33ca27fb3eed325ca";
11+ sha256 = "18z6pn4j7fhmwwh0q22ip5nn7sc1hfgwvkdzqhkja60i8cw2cvvj";
12+ };
13+
14+ nativeBuildInputs = [ cmake pkgconfig ];
15+
16+ meta = with stdenv.lib; {
17+ inherit (src.meta) homepage;
18+ description = "Easy-to-use event device library in C++";
19+ license = licenses.mit;
20+ maintainers = with maintainers; [ willibutz ];
21+ platforms = with platforms; linux;
22+ };
23+}
pkgs/development/libraries/libuinputplus/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "libuinputplus";
5+ version = "2019-10-01";
6+
7+ src = fetchFromGitHub {
8+ owner = "YukiWorkshop";
9+ repo = "libuInputPlus";
10+ rev = "962f180b4cc670e1f5cc73c2e4d5d196ae52d630";
11+ sha256 = "0jy5i7bmjad7hw1qcyjl4swqribp2027s9g3609zwj7lj8z5x0bg";
12+ };
13+
14+ nativeBuildInputs = [ cmake pkgconfig ];
15+
16+ meta = with stdenv.lib; {
17+ inherit (src.meta) homepage;
18+ description = "Easy-to-use uinput library in C++";
19+ license = licenses.mit;
20+ maintainers = with maintainers; [ willibutz ];
21+ platforms = with platforms; linux;
22+ };
23+}
pkgs/tools/wayland/ydotool/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, cmake, boost, libevdevplus, libuinputplus }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "ydotool";
5+ version = "0.1.8";
6+
7+ src = fetchFromGitHub {
8+ owner = "ReimuNotMoe";
9+ repo = "ydotool";
10+ rev = "v${version}";
11+ sha256 = "0mx3636p0f8pznmwm4rlbwq7wrmjb2ygkf8b3a6ps96a7j1fw39l";
12+ };
13+
14+ # disable static linking
15+ postPatch = ''
16+ substituteInPlace CMakeLists.txt --replace \
17+ "-static" \
18+ ""
19+ '';
20+
21+ nativeBuildInputs = [ cmake pkgconfig ];
22+ buildInputs = [
23+ boost libevdevplus libuinputplus
24+ ];
25+
26+ meta = with stdenv.lib; {
27+ inherit (src.meta) homepage;
28+ description = "Generic Linux command-line automation tool";
29+ license = licenses.mit;
30+ maintainers = with maintainers; [ willibutz ];
31+ platforms = with platforms; linux;
32+ };
33+}
pkgs/top-level/all-packages.nix+6
@@ -4598,6 +4598,8 @@ in
45984598
45994599 libevdev = callPackage ../development/libraries/libevdev { };
46004600
4601+ libevdevplus = callPackage ../development/libraries/libevdevplus { };
4602+
46014603 libfann = callPackage ../development/libraries/libfann { };
46024604
46034605 libfsm = callPackage ../development/libraries/libfsm { };
@@ -12611,6 +12613,8 @@ in
1261112613 inherit (darwin.apple_sdk.frameworks) Cocoa;
1261212614 };
1261312615
12616+ libuinputplus = callPackage ../development/libraries/libuinputplus { };
12617+
1261412618 libunistring = callPackage ../development/libraries/libunistring { };
1261512619
1261612620 libupnp = callPackage ../development/libraries/pupnp { };
@@ -14372,6 +14376,8 @@ in
1437214376
1437314377 yder = callPackage ../development/libraries/yder { };
1437414378
14379+ ydotool = callPackage ../tools/wayland/ydotool { };
14380+
1437514381 yojimbo = callPackage ../development/libraries/yojimbo { };
1437614382
1437714383 yubioath-desktop = libsForQt5.callPackage ../applications/misc/yubioath-desktop { };