1{ stdenv
2, lib
3, fetchFromGitHub
4, autoreconfHook
5}:
6
7stdenv.mkDerivation {
8 pname = "sta";
9 version = "unstable-2021-11-30";
10
11 src = fetchFromGitHub {
12 owner = "simonccarter";
13 repo = "sta";
14 rev = "94559e3dfa97d415e3f37b1180b57c17c7222b4f";
15 sha256 = "sha256-AiygCfBze7J1Emy6mc27Dim34eLR7VId9wodUZapIL4=";
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}