2021-06-01 10:57:12 +00:00
|
|
|
{ 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; {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "A program that throttles a pipeline, only letting a line through at most every $1 seconds";
|
2021-06-01 10:57:12 +00:00
|
|
|
homepage = "https://github.com/anko/zthrottle";
|
|
|
|
license = licenses.unlicense;
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = [ maintainers.ckie ];
|
2021-06-01 10:57:12 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "zthrottle";
|
2021-06-01 10:57:12 +00:00
|
|
|
};
|
|
|
|
}
|