nixpkgs/pkgs/development/tools/misc/fsatrace/default.nix

35 lines
799 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2018-03-16 12:59:45 +00:00
stdenv.mkDerivation rec {
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 lib; {
homepage = "https://github.com/jacereda/fsatrace";
2018-03-16 12:59:45 +00:00
description = "filesystem access tracer";
license = licenses.isc;
maintainers = [ maintainers.peti ];
platforms = platforms.linux;
};
}