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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
784 B
Nix
Raw Normal View History

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