about summary refs log tree commit diff
path: root/pkgs/by-name/in/inotify-info/package.nix
blob: 2faa45771160f2d239bae03c96d6a51114d961b7 (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
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation (finalAttrs: {
  pname = "inotify-info";
  version = "unstable-2024-01-05";

  src = fetchFromGitHub {
    owner = "mikesart";
    repo = "inotify-info";
    rev = "a7ff6fa62ed96ec5d2195ef00756cd8ffbf23ae1";
    hash = "sha256-yY+hjdb5J6dpFkIMMUWvZlwoGT/jqOuQIcFp3Dv+qB8=";
  };

  installPhase = ''
    runHook preInstall
    install -Dm755 _release/inotify-info $out/bin/inotify-info
    runHook postInstall
  '';

  meta = with lib; {
    description = "Easily track down the number of inotify watches, instances, and which files are being watched.";
    homepage = "https://github.com/mikesart/inotify-info";
    license = licenses.mit;
    mainProgram = "inotify-info";
    maintainers = with maintainers; [ motiejus ];
    platforms = platforms.linux;
  };
})