about summary refs log tree commit diff
path: root/pkgs/tools/misc/timelimit
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-20 10:27:17 -0400
committerfigsoda <figsoda@pm.me>2021-10-20 13:45:41 -0400
commit77b713b5cdc04358edf4b5d0735ea0faf57e6b4f (patch)
tree8477436151385e4da9bf1d3822d1cd68737b1962 /pkgs/tools/misc/timelimit
parent5b455776e301b85e1180f71b9237b37e00f7134f (diff)
timelimit: init at 1.9.2
Diffstat (limited to 'pkgs/tools/misc/timelimit')
-rw-r--r--pkgs/tools/misc/timelimit/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/timelimit/default.nix b/pkgs/tools/misc/timelimit/default.nix
new file mode 100644
index 0000000000000..22b71ca0f8f44
--- /dev/null
+++ b/pkgs/tools/misc/timelimit/default.nix
@@ -0,0 +1,28 @@
+{ lib, stdenv, fetchFromGitLab, perl }:
+
+stdenv.mkDerivation rec {
+  pname = "timelimit";
+  version = "1.9.2";
+
+  src = fetchFromGitLab {
+    owner = "timelimit";
+    repo = pname;
+    rev = "release/${version}";
+    sha256 = "sha256-5IEAF8zCKaCVH6BAxjoa/2rrue9pRGBBkFzN57d+g+g=";
+  };
+
+  checkInputs = [ perl ];
+  doCheck = true;
+
+  installFlags = [ "PREFIX=$(out)" ];
+  INSTALL_PROGRAM = "install -m755";
+  INSTALL_DATA = "install -m644";
+
+  meta = with lib; {
+    description = "Execute a command and terminates the spawned process after a given time with a given signal";
+    homepage = "https://devel.ringlet.net/sysutils/timelimit/";
+    license = licenses.bsd2;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}