diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2017-10-22 00:13:11 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-10-22 00:31:27 +0200 |
commit | 5121b67b12edb3c4e0570ca64f97c67096aa2dc4 (patch) | |
tree | f0e8d384b422a94f6793d916a80d8def6998e50c /pkgs/tools/security/nsjail | |
parent | 794ecdd8b88b225b58fc4f4b88828d63f047a80e (diff) |
nsjail: git-2015-08-10 -> 2.1
Diffstat (limited to 'pkgs/tools/security/nsjail')
-rw-r--r-- | pkgs/tools/security/nsjail/default.nix | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/pkgs/tools/security/nsjail/default.nix b/pkgs/tools/security/nsjail/default.nix index 3e4ddcd880e9d..a9763b07b71fe 100644 --- a/pkgs/tools/security/nsjail/default.nix +++ b/pkgs/tools/security/nsjail/default.nix @@ -1,30 +1,31 @@ -{ stdenv, fetchgit }: +{ stdenv, fetchFromGitHub, autoconf, pkgconfig, libtool +, bison, flex, libnl, protobuf, protobufc }: stdenv.mkDerivation rec { - name = "nsjail-git-2015-08-10"; + name = "nsjail-${version}"; + version = "2.1"; - src = fetchgit { - url = https://github.com/google/nsjail; - rev = "8b951e6c2827386786cde4a124cd1846d25b9404"; - sha256 = "02bmwd48l6ngp0nc65flw395mpj66brx3808d5xd19qn5524lnni"; + src = fetchFromGitHub { + owner = "google"; + repo = "nsjail"; + rev = version; + fetchSubmodules = true; + sha256 = "1wkhy86d0vgzngdvv593yhcghjh63chb8s67v891zll6bwgwg5h2"; }; + nativeBuildInputs = [ autoconf libtool pkgconfig ]; + buildInputs = [ bison flex libnl protobuf protobufc ]; + installPhase = '' mkdir -p $out/bin cp nsjail $out/bin ''; - meta = { - description = '' - A light-weight process isolation tool, making use of Linux namespaces - and seccomp-bpf syscall filters - ''; - homepage = http://google.github.io/nsjail; - - license = stdenv.lib.licenses.apsl20; - - maintainers = [ stdenv.lib.maintainers.bosu ]; - - platforms = stdenv.lib.platforms.linux; + meta = with stdenv.lib; { + description = "A light-weight process isolation tool, making use of Linux namespaces and seccomp-bpf syscall filters"; + homepage = http://nsjail.com/; + license = licenses.apsl20; + maintainers = [ maintainers.bosu ]; + platforms = platforms.linux; }; } |