summary refs log tree commit diff
path: root/pkgs/tools/misc/fileschanged/default.nix
blob: 6818bb708bb6f134563d5421fef3e620ea53462c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchurl, gamin }:

stdenv.mkDerivation rec {
  name = "fileschanged-0.6.9";

  src = fetchurl {
    url = "mirror://savannah/fileschanged/${name}.tar.gz";
    sha256 = "0ajc9h023vzpnlqqjli4wbvs0q36nr5p9msc3wzbic8rk687qcxc";
  };

  buildInputs = [ gamin ];

  patches = [./unused-variables.debian.patch];

  doCheck = true;

  meta = {
    homepage = https://www.nongnu.org/fileschanged/;
    description = "A command-line utility that reports when files have been altered";
    license = stdenv.lib.licenses.gpl3Plus;

    longDescription = ''
      This utility is a client to FAM (File Alteration Monitor) servers
      like FAM or Gamin. You give it some filenames on the command line
      and then it monitors those files for changes. When it discovers
      that a file has been altered, it displays the filename on the
      standard-output or executes a given command.
    '';

    platforms = stdenv.lib.platforms.linux;
  };
}