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