1{ stdenv, fetchgit }:
2
3stdenv.mkDerivation rec {
4 name = "nsjail-git-2015-08-10";
5
6 src = fetchgit {
7 url = https://github.com/google/nsjail;
8 rev = "8b951e6c2827386786cde4a124cd1846d25b9404";
9 sha256 = "b3b863423cc676111d2d1afbac524eee6fa824588cafccb7c42ff470508a13b1";
10 };
11
12 installPhase = ''
13 mkdir -p $out/bin
14 cp nsjail $out/bin
15 '';
16
17 meta = {
18 description = ''
19 A light-weight process isolation tool, making use of Linux namespaces
20 and seccomp-bpf syscall filters
21 '';
22 homepage = http://google.github.io/nsjail;
23
24 license = stdenv.lib.licenses.apsl20;
25
26 maintainers = [ stdenv.lib.maintainers.bosu ];
27
28 platforms = stdenv.lib.platforms.linux;
29 };
30}