Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "fsatrace";
5 version = "0.0.1-324";
6
7 src = fetchFromGitHub {
8 owner = "jacereda";
9 repo = "fsatrace";
10 rev = "41fbba17da580f81ababb32ec7e6e5fd49f11473";
11 sha256 = "1ihm2v723idd6m0kc1z9v73hmfvh2v0vjs8wvx5w54jaxh3lmj1y";
12 };
13
14 installDir = "libexec/${pname}-${version}";
15
16 makeFlags = [ "INSTALLDIR=$(out)/$(installDir)" ];
17
18 preInstall = ''
19 mkdir -p $out/$installDir
20 '';
21
22 postInstall = ''
23 mkdir -p $out/bin
24 ln -s $out/$installDir/fsatrace $out/bin/fsatrace
25 '';
26
27 meta = with lib; {
28 homepage = "https://github.com/jacereda/fsatrace";
29 description = "filesystem access tracer";
30 license = licenses.isc;
31 platforms = platforms.linux;
32 };
33}