oci-seccomp-bpf-hook: new at 1.2.0

Add a new package for the OCI seccomp BPF hook package.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2020-08-17 10:39:20 +02:00 committed by zowoq
parent 718782b004
commit e48ddd2270
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,58 @@
{ stdenv
, buildGoModule
, fetchFromGitHub
, go-md2man
, installShellFiles
, libseccomp
, linuxPackages
, pkg-config
}:
buildGoModule rec {
pname = "oci-seccomp-bpf-hook";
version = "1.2.0";
src = fetchFromGitHub {
owner = "containers";
repo = "oci-seccomp-bpf-hook";
rev = "v${version}";
sha256 = "143x4daixzhhhpli1l14r7dr7dn3q42w8dddr16jzhhwighsirqw";
};
vendorSha256 = null;
doCheck = false;
outputs = [ "out" "man" ];
nativeBuildInputs = [
go-md2man
installShellFiles
pkg-config
];
buildInputs = [
libseccomp
linuxPackages.bcc
];
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 stdenv.lib; {
homepage = "https://github.com/containers/oci-seccomp-bpf-hook";
description = ''
OCI hook to trace syscalls and generate a seccomp profile
'';
license = licenses.asl20;
maintainers = with maintainers; [ saschagrunert ];
platforms = platforms.linux;
badPlatforms = [ "aarch64-linux" ];
};
}

View File

@ -24612,6 +24612,8 @@ in
nxengine-evo = callPackage ../games/nxengine-evo { };
oci-seccomp-bpf-hook = callPackage ../applications/virtualization/oci-seccomp-bpf-hook { };
odamex = callPackage ../games/odamex { };
oilrush = callPackage ../games/oilrush { };