2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "inotify-info";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.0.3";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mikesart";
|
|
|
|
repo = "inotify-info";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-mxZpJMmSCgm5uV5/wknVb1PdxRIF/b2k+6rdOh4b8zA=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildFlags = ["INOTIFYINFO_VERSION=v${finalAttrs.version}"];
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
installFlags = ["PREFIX=$$out"];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Easily track down the number of inotify watches, instances, and which files are being watched";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/mikesart/inotify-info";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "inotify-info";
|
|
|
|
maintainers = with maintainers; [ motiejus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
})
|