about summary refs log tree commit diff
path: root/pkgs/tools/misc/vmtouch
diff options
context:
space:
mode:
authorJim Garrison <jim@garrison.cc>2015-03-10 10:53:00 -0700
committerJim Garrison <jim@garrison.cc>2015-03-10 19:05:02 -0700
commitdf9daf16aacf5e16f627743a71c2c3970ec7fbd5 (patch)
tree50f2ab4e9cf7876cc9819d146352410567839dae /pkgs/tools/misc/vmtouch
parentc904f35728bfcb1322c862af99890793c25984f2 (diff)
Package vmtouch
Diffstat (limited to 'pkgs/tools/misc/vmtouch')
-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 0000000000000..767a61c2bb50b
--- /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;
+  };
+}