From 2c16d7e8c123ab73eca88801c1ace0c430c12f27 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Thu, 16 May 2024 20:47:17 +0530 Subject: fusuma: move to pkgs/by-name --- pkgs/by-name/fu/fusuma/Gemfile | 19 +++++++ pkgs/by-name/fu/fusuma/Gemfile.lock | 34 +++++++++++++ pkgs/by-name/fu/fusuma/gemset.nix | 98 +++++++++++++++++++++++++++++++++++++ pkgs/by-name/fu/fusuma/package.nix | 24 +++++++++ 4 files changed, 175 insertions(+) create mode 100644 pkgs/by-name/fu/fusuma/Gemfile create mode 100644 pkgs/by-name/fu/fusuma/Gemfile.lock create mode 100644 pkgs/by-name/fu/fusuma/gemset.nix create mode 100644 pkgs/by-name/fu/fusuma/package.nix (limited to 'pkgs/by-name/fu/fusuma') diff --git a/pkgs/by-name/fu/fusuma/Gemfile b/pkgs/by-name/fu/fusuma/Gemfile new file mode 100644 index 0000000000000..7cee961df4a06 --- /dev/null +++ b/pkgs/by-name/fu/fusuma/Gemfile @@ -0,0 +1,19 @@ +source 'https://rubygems.org' +gem "fusuma", ">=3.0.0" +gem "fusuma-plugin-appmatcher" +gem "fusuma-plugin-keypress" +gem "fusuma-plugin-sendkey" +gem "fusuma-plugin-wmctrl" + +# I've not activated the following plugins for the reasons given below. + +# tap has been archived by upstream +# gem "fusuma-plugin-tap" + +# touchscreen needs specific h/w support I don't have access to, so I can't confirm +# if it's problem free. A quick check didn't reveal any problems. +#gem "fusuma-plugin-touchscreen" + +# thumbsense pulls in remap, and at best remap requires further configuration to allow the use access to event devices. +#gem "fusuma-plugin-thumbsense" +#gem "fusuma-plugin-remap" diff --git a/pkgs/by-name/fu/fusuma/Gemfile.lock b/pkgs/by-name/fu/fusuma/Gemfile.lock new file mode 100644 index 0000000000000..b89e3c94971dd --- /dev/null +++ b/pkgs/by-name/fu/fusuma/Gemfile.lock @@ -0,0 +1,34 @@ +GEM + remote: https://rubygems.org/ + specs: + fusuma (3.5.0) + fusuma-plugin-appmatcher (0.7.1) + fusuma (>= 3.0) + rexml + ruby-dbus + fusuma-plugin-keypress (0.11.0) + fusuma (>= 3.1) + fusuma-plugin-sendkey (0.10.1) + fusuma (>= 3.1) + revdev + fusuma-plugin-wmctrl (1.3.1) + fusuma (>= 3.1) + revdev (0.2.1) + rexml (3.2.8) + strscan (>= 3.0.9) + ruby-dbus (0.23.1) + rexml + strscan (3.1.0) + +PLATFORMS + ruby + +DEPENDENCIES + fusuma (>= 3.0.0) + fusuma-plugin-appmatcher + fusuma-plugin-keypress + fusuma-plugin-sendkey + fusuma-plugin-wmctrl + +BUNDLED WITH + 2.5.9 diff --git a/pkgs/by-name/fu/fusuma/gemset.nix b/pkgs/by-name/fu/fusuma/gemset.nix new file mode 100644 index 0000000000000..e5f895c4b74c4 --- /dev/null +++ b/pkgs/by-name/fu/fusuma/gemset.nix @@ -0,0 +1,98 @@ +{ + fusuma = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0vxlfda4mgff9kindrmr47xvn6b591hzvzzsx2y88zq20sn340vy"; + type = "gem"; + }; + version = "3.5.0"; + }; + fusuma-plugin-appmatcher = { + dependencies = ["fusuma" "rexml" "ruby-dbus"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1cj3d1yz3jdxmapgk8wv5ra57nyb278x2fjxdllc0gqdfih6pxhq"; + type = "gem"; + }; + version = "0.7.1"; + }; + fusuma-plugin-keypress = { + dependencies = ["fusuma"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "16csdj695y9b8bvl65cby57fsyfr30pb9qq6h0wyqrxily6cn6il"; + type = "gem"; + }; + version = "0.11.0"; + }; + fusuma-plugin-sendkey = { + dependencies = ["fusuma" "revdev"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0rdpxq4nanw85x1djdanwnz46b19fr46kdlkkgbxa4dnjk0zx4pp"; + type = "gem"; + }; + version = "0.10.1"; + }; + fusuma-plugin-wmctrl = { + dependencies = ["fusuma"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1rgz1d6ahg5i9sr4z2kab5qk7pm3rm0h7r1vwkygi75rv2r3jy86"; + type = "gem"; + }; + version = "1.3.1"; + }; + revdev = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1b6zg6vqlaik13fqxxcxhd4qnkfgdjnl4wy3a1q67281bl0qpsz9"; + type = "gem"; + }; + version = "0.2.1"; + }; + rexml = { + dependencies = ["strscan"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0d8ivcirrrxpkpjc1c835wknc9s2fl54xpw08s177yfrh5ish209"; + type = "gem"; + }; + version = "3.2.8"; + }; + ruby-dbus = { + dependencies = ["rexml"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0hf9y5lbi1xcadc2fw87wlif75s1359c2wwlvvd0gag7cq5dm0pm"; + type = "gem"; + }; + version = "0.23.1"; + }; + strscan = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0mamrl7pxacbc79ny5hzmakc9grbjysm3yy6119ppgsg44fsif01"; + type = "gem"; + }; + version = "3.1.0"; + }; +} diff --git a/pkgs/by-name/fu/fusuma/package.nix b/pkgs/by-name/fu/fusuma/package.nix new file mode 100644 index 0000000000000..0622ce699f8c2 --- /dev/null +++ b/pkgs/by-name/fu/fusuma/package.nix @@ -0,0 +1,24 @@ +{ lib, bundlerApp, bundlerUpdateScript, makeWrapper, gnugrep, libinput }: + +bundlerApp { + pname = "fusuma"; + gemdir = ./.; + exes = [ "fusuma" ]; + + nativeBuildInputs = [ makeWrapper ]; + + postBuild = '' + wrapProgram "$out/bin/fusuma" \ + --prefix PATH : ${lib.makeBinPath [ gnugrep libinput ]} + ''; + + passthru.updateScript = bundlerUpdateScript "fusuma"; + + meta = with lib; { + description = "Multitouch gestures with libinput driver on X11, Linux"; + homepage = "https://github.com/iberianpig/fusuma"; + license = licenses.mit; + maintainers = with maintainers; [ nicknovitski Br1ght0ne ]; + platforms = platforms.linux; + }; +} -- cgit 1.4.1