2018-03-16 12:59:45 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fsatrace";
|
2019-11-10 10:00:43 +00:00
|
|
|
version = "0.0.1-324";
|
2018-03-16 12:59:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jacereda";
|
|
|
|
repo = "fsatrace";
|
2019-11-10 10:00:43 +00:00
|
|
|
rev = "41fbba17da580f81ababb32ec7e6e5fd49f11473";
|
|
|
|
sha256 = "1ihm2v723idd6m0kc1z9v73hmfvh2v0vjs8wvx5w54jaxh3lmj1y";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/jacereda/fsatrace;
|
|
|
|
description = "filesystem access tracer";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.peti ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|