diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 3f67d05d92899..525fcd0846695 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -28,6 +28,8 @@ - [agorakit](https://github.com/agorakit/agorakit), an organization tool for citizens' collectives. Available with [services.agorakit](options.html#opt-services.agorakit.enable). +- [libinput-three-finger-drag](https://github.com/marsqing/libinput-three-finger-drag), three-finger-drag support for libinput. + - [mqtt-exporter](https://github.com/kpetremann/mqtt-exporter/), a Prometheus exporter for exposing messages from MQTT. Available as [services.prometheus.exporters.mqtt](#opt-services.prometheus.exporters.mqtt.enable). - [Buffyboard](https://gitlab.postmarketos.org/postmarketOS/buffybox/-/tree/master/buffyboard), a framebuffer on-screen keyboard. Available as [services.buffyboard](option.html#opt-services.buffyboard). diff --git a/pkgs/by-name/li/libinput-three-finger-drag/package.nix b/pkgs/by-name/li/libinput-three-finger-drag/package.nix new file mode 100644 index 0000000000000..f54099183f0ce --- /dev/null +++ b/pkgs/by-name/li/libinput-three-finger-drag/package.nix @@ -0,0 +1,38 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + libinput, + xdotool, + makeWrapper, +}: + +rustPlatform.buildRustPackage { + pname = "libinput-three-finger-drag"; + version = "0.1-unstable-2024-06-17"; + + src = fetchFromGitHub { + owner = "marsqing"; + repo = "libinput-three-finger-drag"; + rev = "6acd3f84b551b855b5f21b08db55e95dae3305c5"; + hash = "sha256-xmcTb+23d6mMzIfMVjzN6bwV0fWH4p6YhXXqrFmt4TM="; + }; + cargoHash = "sha256-D8a+kaINXqYkNmh1NJWom1p9/ziEzUoJvcknJPZxOS4="; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ xdotool ]; + + postFixup = '' + wrapProgram "$out/bin/libinput-three-finger-drag" \ + --prefix PATH : "${lib.makeBinPath [ libinput ]}" + ''; + + meta = { + description = "Three-finger-drag support for libinput."; + homepage = "https://github.com/marsqing/libinput-three-finger-drag"; + license = with lib.licenses; [ mit ]; + mainProgram = "libinput-three-finger-drag"; + maintainers = with lib.maintainers; [ ajgon ]; + platforms = lib.platforms.linux; + }; +}