about summary refs log tree commit diff
path: root/pkgs/tools/misc/zthrottle/default.nix
blob: aa1d3c1c4fbf462523fa0cb474145dd2b27867cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchFromGitHub, zsh }:

stdenv.mkDerivation rec {
  pname = "zthrottle";
  version = "unstable-2017-7-24";

  src = fetchFromGitHub {
    owner = "anko";
    repo = pname;
    rev = "f62066661e49375baeb891fa8e43ad4527cbd0a0";
    sha256 = "1ipvwmcsigzmxlg7j22cxpvdcgqckkmfpsnvzy18nbybd5ars9l5";
  };

  buildInputs = [ zsh ];

  installPhase = ''
    install -D zthrottle $out/bin/zthrottle
  '';

  meta = with lib; {
    description = "Program that throttles a pipeline, only letting a line through at most every $1 seconds";
    homepage = "https://github.com/anko/zthrottle";
    license = licenses.unlicense;
    maintainers = [ ];
    platforms = platforms.unix;
    mainProgram = "zthrottle";
  };
}