summary refs log tree commit diff
path: root/pkgs/tools/misc/vmtouch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/vmtouch/default.nix')
-rw-r--r--pkgs/tools/misc/vmtouch/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/vmtouch/default.nix b/pkgs/tools/misc/vmtouch/default.nix
new file mode 100644
index 00000000000..767a61c2bb5
--- /dev/null
+++ b/pkgs/tools/misc/vmtouch/default.nix
@@ -0,0 +1,27 @@
+{stdenv, fetchFromGitHub, perl}:
+
+stdenv.mkDerivation rec {
+  pname = "vmtouch";
+  version = "git-20150310";
+  name = "${pname}-${version}";
+
+  src = fetchFromGitHub {
+    owner = "hoytech";
+    repo = "vmtouch";
+    rev = "4e1b106e59942678c1e6e490e2c7ca7df50eb7a3";
+    sha256 = "1m37gvlypyfizd33mfyfha4hhwiyfzsj8gb2h5im6wzis4j15d0y";
+  };
+
+  buildInputs = [perl];
+
+  makeFlags = "PREFIX=$(out)";
+
+  meta = {
+    description = "Portable file system cache diagnostics and control";
+    longDescription = "vmtouch is a tool for learning about and controlling the file system cache of unix and unix-like systems.";
+    homepage = "http://hoytech.com/vmtouch/vmtouch.html";
+    license = stdenv.lib.licenses.bsd3;
+    maintainers = [ stdenv.lib.maintainers.garrison ];
+    platforms = stdenv.lib.platforms.all;
+  };
+}