2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fsatrace";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jacereda";
|
|
|
|
repo = "fsatrace";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "5af79511828ca6cea4e5dd9f28e1676fb0b705e9";
|
|
|
|
"hash" = "sha256-pn07qlrRaM153znEviziuKWrkX9cLsNFCujovmE4UUA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installDir = "libexec/${pname}-${version}";
|
|
|
|
|
|
|
|
makeFlags = [ "INSTALLDIR=$(out)/$(installDir)" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/$installDir
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/$installDir/fsatrace $out/bin/fsatrace
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jacereda/fsatrace";
|
|
|
|
description = "filesystem access tracer";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|