1{ stdenv
2, lib
3, fetchFromGitHub
4, autoreconfHook
5}:
6
7stdenv.mkDerivation {
8 pname = "sta";
9 version = "unstable-2020-05-10";
10
11 src = fetchFromGitHub {
12 owner = "simonccarter";
13 repo = "sta";
14 rev = "566e3a77b103aa27a5f77ada8e068edf700f26ef";
15 sha256 = "1v20di90ckl405rj5pn6lxlpxh2m2b3y9h2snjvk0k9sihk7w7d5";
16 };
17
18 nativeBuildInputs = [ autoreconfHook ];
19
20 meta = with lib; {
21 description = "Simple statistics from the command line interface (CLI), fast";
22 longDescription = ''
23 This is a lightweight, fast tool for calculating basic descriptive
24 statistics from the command line. Inspired by
25 https://github.com/nferraz/st, this project differs in that it is written
26 in C++, allowing for faster computation of statistics given larger
27 non-trivial data sets.
28 '';
29 license = licenses.mit;
30 homepage = "https://github.com/simonccarter/sta";
31 maintainers = with maintainers; [ infinisil ];
32 platforms = platforms.all;
33 badPlatforms = platforms.darwin;
34 mainProgram = "sta";
35 };
36}