summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-05-09 08:42:27 +0100
committerGitHub <noreply@github.com>2017-05-09 08:42:27 +0100
commit0e6950ded6a19b9a952eb1f26e9156ce939d7368 (patch)
treeaa6d56b5e118b1e5c0814fb20a0186fc3509630a /pkgs
parent33cfad822702373a3279e560ab65c518372821c8 (diff)
parent7cf29e13058c187df99c7b7dec23e78d50664abf (diff)
downloadnixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.tar
nixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.tar.gz
nixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.tar.bz2
nixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.tar.lz
nixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.tar.xz
nixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.tar.zst
nixpkgs-0e6950ded6a19b9a952eb1f26e9156ce939d7368.zip
Merge pull request #25608 from 8573/8573/pkg/add/rust/staccato/1
staccato: init at 0.1.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/text/staccato/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/text/staccato/default.nix b/pkgs/tools/text/staccato/default.nix
new file mode 100644
index 00000000000..bfddff938f9
--- /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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e9741abcb5f..b93aa9f5896 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1028,6 +1028,8 @@ with pkgs;
 
   socklog = callPackage ../tools/system/socklog { };
 
+  staccato = callPackage ../tools/text/staccato { };
+
   syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {};
 
   syslogng = callPackage ../tools/system/syslog-ng { };