From 77b713b5cdc04358edf4b5d0735ea0faf57e6b4f Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 20 Oct 2021 10:27:17 -0400 Subject: [PATCH] timelimit: init at 1.9.2 --- pkgs/tools/misc/timelimit/default.nix | 28 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/misc/timelimit/default.nix diff --git a/pkgs/tools/misc/timelimit/default.nix b/pkgs/tools/misc/timelimit/default.nix new file mode 100644 index 000000000000..22b71ca0f8f4 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ff0b603190ee..d62ac084ca9e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28121,6 +28121,8 @@ with pkgs; fftw = fftwSinglePrec; }; + timelimit = callPackage ../tools/misc/timelimit { }; + timewarrior = callPackage ../applications/misc/timewarrior { }; timew-sync-server = callPackage ../applications/misc/timew-sync-server { };