Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
go-md2man,
|
|
installShellFiles,
|
|
pkg-config,
|
|
bcc,
|
|
libseccomp,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "oci-seccomp-bpf-hook";
|
|
version = "1.2.11";
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "oci-seccomp-bpf-hook";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-1LRwbKOLNBkY/TMTLlWq2lkFzCabXqwdaMRT9HNr6HE=";
|
|
};
|
|
vendorHash = null;
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
nativeBuildInputs = [
|
|
go-md2man
|
|
installShellFiles
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
bcc
|
|
libseccomp
|
|
];
|
|
|
|
checkPhase = ''
|
|
go test -v ./...
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
postBuild = ''
|
|
substituteInPlace oci-seccomp-bpf-hook.json --replace HOOK_BIN_DIR "$out/bin"
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm755 bin/* -t $out/bin
|
|
install -Dm644 oci-seccomp-bpf-hook.json -t $out
|
|
installManPage docs/*.[1-9]
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/containers/oci-seccomp-bpf-hook";
|
|
description = ''
|
|
OCI hook to trace syscalls and generate a seccomp profile
|
|
'';
|
|
mainProgram = "oci-seccomp-bpf-hook";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ saschagrunert ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|