Skip to content

Commit

Permalink
libinput-three-finger-drag: init at 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Dec 6, 2024
1 parent db607a6 commit db02f09
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

## Backward Incompatibilities {#sec-release-25.05-incompatibilities}
Expand Down
38 changes: 38 additions & 0 deletions pkgs/by-name/li/libinput-three-finger-drag/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit db02f09

Please sign in to comment.