diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 32f60ddcf7d92a..7c219159037a00 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -22,6 +22,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. + ## Backward Incompatibilities {#sec-release-25.05-incompatibilities} 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 00000000000000..74d99ddc28c264 --- /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"; + + src = fetchFromGitHub { + owner = "marsqing"; + repo = "libinput-three-finger-drag"; + rev = "master"; + hash = "sha256-xmcTb+23d6mMzIfMVjzN6bwV0fWH4p6YhXXqrFmt4TM="; + }; + cargoHash = "sha256-7HUojbqiQ4I3rGrqjr6aI2mzC1gQMcjMmhI36IaKKac="; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ xdotool ]; + + postFixup = '' + wrapProgram "$out/bin/libinput-three-finger-drag" \ + --prefix PATH : "${lib.makeBinPath [ libinput ]}" + ''; + + meta = with lib; { + description = " Three-finger-drag support for libinput."; + homepage = "https://github.com/marsqing/libinput-three-finger-drag"; + license = with licenses; [ mit ]; + mainProgram = "libinput-three-finger-drag"; + maintainers = with maintainers; [ ajgon ]; + platforms = lib.platforms.linux; + }; +}