mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, icu, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fltrdr";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "fltrdr";
|
|
owner = "octobanana";
|
|
rev = version;
|
|
sha256 = "1vpci7vqzcpdd21zgigyz38k77r9fc81dmiwsvfr8w7gad5sg6sj";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ icu openssl ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|