nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 perl,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "timelimit";
10 version = "1.9.2";
11
12 src = fetchFromGitLab {
13 owner = "timelimit";
14 repo = "timelimit";
15 rev = "release/${version}";
16 hash = "sha256-5IEAF8zCKaCVH6BAxjoa/2rrue9pRGBBkFzN57d+g+g=";
17 };
18
19 nativeCheckInputs = [ perl ];
20 doCheck = true;
21
22 installFlags = [ "PREFIX=$(out)" ];
23 INSTALL_PROGRAM = "install -m755";
24 INSTALL_DATA = "install -m644";
25
26 meta = with lib; {
27 description = "Execute a command and terminates the spawned process after a given time with a given signal";
28 homepage = "https://devel.ringlet.net/sysutils/timelimit/";
29 license = licenses.bsd2;
30 platforms = platforms.all;
31 maintainers = with maintainers; [ figsoda ];
32 mainProgram = "timelimit";
33 };
34}