diff options
author | Ron B <me@ronthecookie.me> | 2021-05-28 20:56:13 +0300 |
---|---|---|
committer | Ron B <me@ronthecookie.me> | 2021-05-28 20:56:13 +0300 |
commit | 4fc765ed03ea529601a7f33c7093be76c833ed11 (patch) | |
tree | e63aaa99c3a2f78764c0d3f8368c358016d2392a /pkgs/tools/misc/zthrottle | |
parent | d4b7485fb66b727f822a1b94129c2af57166eab0 (diff) |
zthrottle: init at unstable-2017-7-24
Diffstat (limited to 'pkgs/tools/misc/zthrottle')
-rw-r--r-- | pkgs/tools/misc/zthrottle/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/zthrottle/default.nix b/pkgs/tools/misc/zthrottle/default.nix new file mode 100644 index 0000000000000..66209ead6fa7b --- /dev/null +++ b/pkgs/tools/misc/zthrottle/default.nix @@ -0,0 +1,27 @@ +{ 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 = "A 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 = [ maintainers.ronthecookie ]; + platforms = platforms.unix; + }; +} |