summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firejail
diff options
context:
space:
mode:
authorJohannes Frankenau <johannes@frankenau.net>2017-07-25 13:25:40 +0200
committerJohannes Frankenau <johannes@frankenau.net>2017-07-25 14:30:36 +0200
commitfcf7b6761bf07a62a05d91b0920febc928905ced (patch)
tree77c51cec7863d2c55d9256f68f5da8570d6b6bce /pkgs/os-specific/linux/firejail
parentefad0d5e3fe4380b5276f41e38831387de9d371f (diff)
downloadnixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.tar
nixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.tar.gz
nixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.tar.bz2
nixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.tar.lz
nixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.tar.xz
nixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.tar.zst
nixpkgs-fcf7b6761bf07a62a05d91b0920febc928905ced.zip
firejail: 0.9.44.10 -> 0.9.48
Diffstat (limited to 'pkgs/os-specific/linux/firejail')
-rw-r--r--pkgs/os-specific/linux/firejail/default.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/firejail/default.nix b/pkgs/os-specific/linux/firejail/default.nix
index 1bbe8dbb160..b20dcd34233 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.44.10";
+    version="0.9.48";
     name="${baseName}-${version}";
-    hash="19wln3h54wcscqgcmkm8sprdh7vrn5k91rr0hagv055y1i52c7mj";
-    url="https://netix.dl.sourceforge.net/project/firejail/firejail/firejail-0.9.44.10.tar.xz";
-    sha256="19wln3h54wcscqgcmkm8sprdh7vrn5k91rr0hagv055y1i52c7mj";
+    hash="02a74nx8p2gbpd6ffnr52p02pxxllw3yy5fy4083a77r3wia8zb3";
+    url="https://vorboss.dl.sourceforge.net/project/firejail/firejail/firejail-0.9.48.tar.xz";
+    sha256="02a74nx8p2gbpd6ffnr52p02pxxllw3yy5fy4083a77r3wia8zb3";
   };
   buildInputs = [
     which
@@ -21,6 +21,13 @@ stdenv.mkDerivation {
     name = "${s.name}.tar.bz2";
   };
 
+  prePatch = ''
+    # Allow whitelisting ~/.nix-profile
+    substituteInPlace etc/firejail.config --replace \
+      '# follow-symlink-as-user yes' \
+      'follow-symlink-as-user no'
+  '';
+
   preConfigure = ''
     sed -e 's@/bin/bash@${stdenv.shell}@g' -i $( grep -lr /bin/bash .)
     sed -e "s@/bin/cp@$(which cp)@g" -i $( grep -lr /bin/cp .)