1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "extrace";
5 version = "0.9";
6
7 src = fetchFromGitHub {
8 owner = "leahneukirchen";
9 repo = "extrace";
10 rev = "v${version}";
11 hash = "sha256-Jy/Ac3NcqBkW0kHyypMAVUGAQ41qWM96BbLAym06ogM=";
12 };
13
14 makeFlags = [ "PREFIX=${placeholder "out"}" ];
15
16 postInstall = ''
17 install -dm755 "$out/share/licenses/extrace/"
18 install -m644 LICENSE "$out/share/licenses/extrace/LICENSE"
19 '';
20
21 meta = with lib; {
22 homepage = "https://github.com/leahneukirchen/extrace";
23 description = "Trace exec() calls system-wide";
24 license = with licenses; [ gpl2Plus bsd2 ];
25 platforms = platforms.linux;
26 maintainers = [ maintainers.leahneukirchen ];
27 };
28}