2019-02-22 20:33:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2019-04-07 18:54:57 +01:00
|
|
|
, icu
|
2019-02-22 20:33:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fltrdr-${version}";
|
2019-04-07 18:54:57 +01:00
|
|
|
version = "0.2.1";
|
2019-02-22 20:33:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "fltrdr";
|
|
|
|
owner = "octobanana";
|
|
|
|
rev = "${version}";
|
2019-04-07 18:54:57 +01:00
|
|
|
sha256 = "0hj7pwb93l4ahykmmr0665nq50jvwdq0aiaciz82225aw1cq939w";
|
2019-02-22 20:33:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-04-07 18:54:57 +01:00
|
|
|
buildInputs = [ icu ];
|
2019-02-22 20:33:57 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://octobanana.com/software/fltrdr;
|
|
|
|
description = "A TUI text reader for the terminal";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Fltrdr, or flat-reader, is an interactive text reader for the terminal. It
|
|
|
|
is flat in the sense that the reader is word-based. It creates a
|
|
|
|
horizontal stream of words, ignoring all newline characters and reducing
|
|
|
|
extra whitespace. Its purpose is to facilitate reading, scanning, and
|
|
|
|
searching text. The program has a play mode that moves the reader forward
|
|
|
|
one word at a time, along with a configurable words per minute (WPM),
|
|
|
|
setting.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = platforms.linux; # can only test linux
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|