2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-03-16 12:59:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fsatrace";
|
2023-09-26 05:50:50 +00:00
|
|
|
version = "0.0.5";
|
2018-03-16 12:59:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jacereda";
|
|
|
|
repo = "fsatrace";
|
2023-09-26 05:50:50 +00:00
|
|
|
rev = "5af79511828ca6cea4e5dd9f28e1676fb0b705e9";
|
|
|
|
"hash" = "sha256-pn07qlrRaM153znEviziuKWrkX9cLsNFCujovmE4UUA=";
|
2018-03-16 12:59:45 +00:00
|
|
|
};
|
|
|
|
|
2019-11-10 10:00:43 +00:00
|
|
|
installDir = "libexec/${pname}-${version}";
|
|
|
|
|
|
|
|
makeFlags = [ "INSTALLDIR=$(out)/$(installDir)" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/$installDir
|
2018-03-16 12:59:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2019-11-10 10:00:43 +00:00
|
|
|
ln -s $out/$installDir/fsatrace $out/bin/fsatrace
|
2018-03-16 12:59:45 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jacereda/fsatrace";
|
2018-03-16 12:59:45 +00:00
|
|
|
description = "filesystem access tracer";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "fsatrace";
|
2018-03-16 12:59:45 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|