depot/third_party/nixpkgs/pkgs/development/tools/misc/fsatrace/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
801 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "fsatrace";
version = "0.0.1-324";
src = fetchFromGitHub {
owner = "jacereda";
repo = "fsatrace";
rev = "41fbba17da580f81ababb32ec7e6e5fd49f11473";
sha256 = "1ihm2v723idd6m0kc1z9v73hmfvh2v0vjs8wvx5w54jaxh3lmj1y";
};
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
'';
meta = with stdenv.lib; {
homepage = "https://github.com/jacereda/fsatrace";
description = "filesystem access tracer";
license = licenses.isc;
maintainers = [ maintainers.peti ];
platforms = platforms.linux;
};
}