summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorgfrascadorio <gfrascadorio@sharklasers.com>2021-05-16 22:04:35 -0600
committergfrascadorio <gfrascadorio@sharklasers.com>2021-05-19 15:19:58 -0600
commitd0d4af2c40aacb0186ae9cc11c914aea9d59c773 (patch)
tree83d7f24272c2ce0b3bfc2ac5f0ba565a991cca10 /pkgs/tools/system
parent3d6cd4343c134eb5414ca09833db049cbb4d1430 (diff)
downloadnixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.tar
nixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.tar.gz
nixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.tar.bz2
nixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.tar.lz
nixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.tar.xz
nixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.tar.zst
nixpkgs-d0d4af2c40aacb0186ae9cc11c914aea9d59c773.zip
retry: init at v1.04
Add package for 'retry' tool that allows a script to repeat a command
until it succeeds or hits a repetition threshold. 'Retry' supports
replaying stdin, emitting the final stdout, and backoff delays.

Applied fixes for PR comments
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/retry/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/system/retry/default.nix b/pkgs/tools/system/retry/default.nix
new file mode 100644
index 00000000000..3dc4bdb1a19
--- /dev/null
+++ b/pkgs/tools/system/retry/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, which, txt2man }:
+stdenv.mkDerivation rec {
+  pname = "retry";
+  version = "1.0.4";
+
+  nativeBuildInputs = [ autoreconfHook which txt2man ];
+
+  src = fetchFromGitHub {
+    owner = "minfrin";
+    repo = "retry";
+    rev = "${pname}-${version}";
+    sha256 = "sha256:0jrx4yrwlf4fn3309kxraj7zgwk7gq6rz5ibswq3w3b3jfvxi8qb";
+  };
+
+  meta = with lib; {
+    homepage = "https://github.com/minfrin/retry";
+    description = "Retry a command until the command succeeds";
+    platforms = platforms.all;
+    license = licenses.asl20;
+    # maintainers = with maintainers; [ gfrascadorio ];
+  };
+}
+