1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 perl,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "vmtouch";
10 version = "1.3.1";
11
12 src = fetchFromGitHub {
13 owner = "hoytech";
14 repo = "vmtouch";
15 rev = "v${version}";
16 sha256 = "08da6apzfkfjwasn4dxrlfxqfx7arl28apdzac5nvm0fhvws0dxk";
17 };
18
19 buildInputs = [ perl ];
20
21 makeFlags = [ "PREFIX=$(out)" ];
22
23 meta = {
24 description = "Portable file system cache diagnostics and control";
25 longDescription = "vmtouch is a tool for learning about and controlling the file system cache of unix and unix-like systems.";
26 homepage = "https://hoytech.com/vmtouch/";
27 license = lib.licenses.bsd3;
28 maintainers = [ lib.maintainers.garrison ];
29 platforms = lib.platforms.all;
30 mainProgram = "vmtouch";
31 };
32}