about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/fsatrace/default.nix
blob: 4d3661b6c201ca2209752f2618d7677988bb4295 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, 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 lib; {
    homepage = "https://github.com/jacereda/fsatrace";
    description = "filesystem access tracer";
    license = licenses.isc;
    platforms = platforms.linux;
  };
}