1 { lib, stdenv, fetchFromGitHub, autoconf, bison, flex, libtool, pkg-config, which
2 , libnl, protobuf, protobufc, shadow, installShellFiles
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 fetchSubmodules = true;
14 sha256 = "sha256-SFRnCEPawMKEIdmrOnJ45IIb17W1d4qCceuRdWTDTQU=";
17 nativeBuildInputs = [ autoconf bison flex libtool pkg-config which installShellFiles ];
18 buildInputs = [ libnl protobuf protobufc ];
19 enableParallelBuilding = true;
22 makeFlagsArray+=(USER_DEFINES='-DNEWUIDMAP_PATH=${shadow}/bin/newuidmap -DNEWGIDMAP_PATH=${shadow}/bin/newgidmap')
26 install -Dm755 nsjail "$out/bin/nsjail"
27 installManPage nsjail.1
31 description = "A light-weight process isolation tool, making use of Linux namespaces and seccomp-bpf syscall filters";
32 homepage = "http://nsjail.com/";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ arturcygan bosu c0bw3b ];
35 platforms = platforms.linux;