18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 fetchSubmodules = true;
27 hash = "sha256-/K+qJV5Dq+my45Cpw6czdsWLtO9lnJwZTsOIRt4Iijk=";
44 enableParallelBuilding = true;
46 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error" ];
49 makeFlagsArray+=(USER_DEFINES='-DNEWUIDMAP_PATH=${shadow}/bin/newuidmap -DNEWGIDMAP_PATH=${shadow}/bin/newgidmap')
54 install -Dm755 nsjail "$out/bin/nsjail"
55 installManPage nsjail.1
60 description = "Light-weight process isolation tool, making use of Linux namespaces and seccomp-bpf syscall filters";
61 homepage = "https://nsjail.dev/";
62 changelog = "https://github.com/google/nsjail/releases/tag/${version}";
63 license = licenses.asl20;
64 maintainers = with maintainers; [
69 platforms = platforms.linux;
70 mainProgram = "nsjail";