Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / sw / swipe-guess / package.nix
blob2f6d5f8fe9a5096ba04325cc5dafccbd4520d0c7
1 { lib
2 , stdenv
3 , fetchFromSourcehut
4 }:
6 stdenv.mkDerivation rec {
7   pname = "swipe-guess";
8   version = "0.2.1";
10   src = fetchFromSourcehut {
11     owner = "~earboxer";
12     repo = "swipeGuess";
13     rev = "v${version}";
14     hash = "sha256-8bPsnqjLeeZ7btTre9j1T93VWY9+FdBdJdxyvBVt34s=";
15   };
17   dontConfigure = true;
19   buildPhase = ''
20     runHook preBuild
22     ${lib.getExe stdenv.cc} swipeGuess.c -o swipeGuess
24     runHook postBuild
25   '';
27   postInstall = ''
28     install -Dm555 swipeGuess -t $out/bin
29   '';
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   };