1{
2 lib,
3 stdenv,
4 fetchurl,
5 psmisc,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "tmpwatch";
10 version = "2.11";
11
12 src = fetchurl {
13 url = "https://releases.pagure.org/tmpwatch/tmpwatch-${version}.tar.bz2";
14 sha256 = "1m5859ngwx61l1i4s6fja2avf1hyv6w170by273w8nsin89825lk";
15 };
16
17 configureFlags = [ "--with-fuser=${psmisc}/bin/fuser" ];
18
19 meta = with lib; {
20 homepage = "https://pagure.io/tmpwatch";
21 description = "Recursively searches through specified directories and removes files which have not been accessed in a specified period of time";
22 license = licenses.gpl2Plus;
23 maintainers = with maintainers; [ vlstill ];
24 platforms = platforms.unix;
25 mainProgram = "tmpwatch";
26 };
27}