From f3b947bfeb897c1cc6e84dc6410679e9cb4cabf3 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Nov 2014 22:59:32 +0300 Subject: [PATCH] Update Firejail --- pkgs/os-specific/linux/firejail/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/firejail/default.nix b/pkgs/os-specific/linux/firejail/default.nix index ec9b3537fad8..eb8e7cf390ae 100644 --- a/pkgs/os-specific/linux/firejail/default.nix +++ b/pkgs/os-specific/linux/firejail/default.nix @@ -3,11 +3,11 @@ let s = # Generated upstream information rec { baseName="firejail"; - version="0.9.14"; + version="0.9.16"; name="${baseName}-${version}"; - hash="0mwlvxl4fcfqvw7scldh4wz0i3b22cf5a2aglaxc9i1c3jld3w9l"; - url="http://softlayer-ams.dl.sourceforge.net/project/firejail/firejail/firejail-0.9.14-rc1.tar.bz2"; - sha256="0mwlvxl4fcfqvw7scldh4wz0i3b22cf5a2aglaxc9i1c3jld3w9l"; + hash="1213ln6rqb1w0ba98zwi5p40f7gzpz4rqn621zz72v0z1q1vfkrp"; + url="mirror://sourceforge/project/firejail/firejail/firejail-0.9.16-rc1.tar.bz2"; + sha256="1213ln6rqb1w0ba98zwi5p40f7gzpz4rqn621zz72v0z1q1vfkrp"; }; buildInputs = [ ]; @@ -25,6 +25,10 @@ stdenv.mkDerivation { sed -e '/ \/run/iif(vrcs!=NULL){symlink(vrcs, "/var/run/current-system")\;free(vrcs)\;}' -i ./src/firejail/fs_var.c ''; + preBuild = '' + sed -e "s@/etc/@$out/etc/@g" -i Makefile + ''; + meta = { inherit (s) version; description = ''Namespace-based sandboxing tool for Linux'';