about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMotiejus Jakštys <motiejus@jakstys.lt>2024-02-08 09:21:41 +0200
committerMotiejus Jakštys <motiejus@jakstys.lt>2024-02-08 09:21:41 +0200
commit248d90e6ec208f1b1de1491164c4d83bf3683ca5 (patch)
treeb3239c6e1ab13169fe87ab8489387fe47059dc57
parentb7b72b00c2e857058147284965e5df182b57c7d6 (diff)
inotify-info: init at unstable-2024-01-05
-rw-r--r--pkgs/by-name/in/inotify-info/package.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/by-name/in/inotify-info/package.nix b/pkgs/by-name/in/inotify-info/package.nix
new file mode 100644
index 0000000000000..2faa45771160f
--- /dev/null
+++ b/pkgs/by-name/in/inotify-info/package.nix
@@ -0,0 +1,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;
+  };
+})