Merge pull request #261525 from eclairevoyant/swipe-guess

swipe-guess: init at 0.2.1

authored by Weijia Wang and committed by GitHub 84f02c3a 190a5a5b

+39
+39
pkgs/by-name/sw/swipe-guess/package.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromSourcehut 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "swipe-guess"; 8 + version = "0.2.1"; 9 + 10 + src = fetchFromSourcehut { 11 + owner = "~earboxer"; 12 + repo = "swipeGuess"; 13 + rev = "v${version}"; 14 + hash = "sha256-8bPsnqjLeeZ7btTre9j1T93VWY9+FdBdJdxyvBVt34s="; 15 + }; 16 + 17 + dontConfigure = true; 18 + 19 + buildPhase = '' 20 + runHook preBuild 21 + 22 + ${lib.getExe stdenv.cc} swipeGuess.c -o swipeGuess 23 + 24 + runHook postBuild 25 + ''; 26 + 27 + postInstall = '' 28 + install -Dm555 swipeGuess -t $out/bin 29 + ''; 30 + 31 + meta = { 32 + description = "Completion plugin for touchscreen-keyboards on mobile devices"; 33 + homepage = "https://git.sr.ht/~earboxer/swipeGuess/"; 34 + license = lib.licenses.agpl3Only; 35 + mainProgram = "swipeGuess"; 36 + maintainers = with lib.maintainers; [ eclairevoyant ]; 37 + platforms = lib.platforms.all; 38 + }; 39 + }