summary refs log tree commit diff
path: root/pkgs/tools/text/staccato
diff options
context:
space:
mode:
authorc74d <8573dd@gmail.com>2017-05-08 07:03:10 +0000
committerc74d <8573dd@gmail.com>2017-05-08 07:03:10 +0000
commit7cf29e13058c187df99c7b7dec23e78d50664abf (patch)
tree95d5fb0b7c0ca3e9f2cb50c16442746588c9062f /pkgs/tools/text/staccato
parente7322f1fdfb499260541db8db6ae7f30c7039f9d (diff)
downloadnixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.tar
nixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.tar.gz
nixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.tar.bz2
nixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.tar.lz
nixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.tar.xz
nixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.tar.zst
nixlib-7cf29e13058c187df99c7b7dec23e78d50664abf.zip
staccato: init at 0.1.6
Add the package `staccato`, "a command line program that lets you
compute statistics from values from a file or standard input".

I have tested this change per nixpkgs manual section 13.1 ("Making
patches").
Diffstat (limited to 'pkgs/tools/text/staccato')
-rw-r--r--pkgs/tools/text/staccato/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/text/staccato/default.nix b/pkgs/tools/text/staccato/default.nix
new file mode 100644
index 000000000000..bfddff938f95
--- /dev/null
+++ b/pkgs/tools/text/staccato/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchFromGitHub, rustPlatform }:
+
+rustPlatform.buildRustPackage rec {
+  name = "staccato-${version}";
+  version = "0.1.6";
+
+  src = fetchFromGitHub {
+    owner = "tshlabs";
+    repo = "staccato";
+    rev = version;
+    sha256 = "1zbd1gx0ik2r7bavcid776j37g6rzd3f6cs94kq1qar4gyf1gqjm";
+  };
+
+  depsSha256 = "1gwfkh3ck8n3zcy43ch2mnc28a6y10p3srhnx9dh8gwnwbpb733c";
+
+  meta = {
+    description = "A command line program that lets you compute statistics from values from a file or standard input";
+    longDescription = ''
+      Staccato (`st` for short) is a command line program that lets you
+      compute statistics from values from a file or standard input. It
+      computes things about the stream of numbers like min, max, mean, median,
+      and standard deviation. It can also compute these things about some
+      subset of the stream, for example the lower 95% of values.
+    '';
+    homepage = "https://docs.rs/crate/staccato";
+    license = stdenv.lib.licenses.gpl3;
+    platforms = stdenv.lib.platforms.all;
+  };
+}