about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2017-09-26 20:35:22 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2017-09-26 23:17:12 +0200
commit206e4a6d69f25e47254bbd33f935f85d97441259 (patch)
tree24584d58e522f3a6ac9d8d81ba08c83ee36fe3dc /pkgs/applications
parentfc44e91ad5fabde78aedc2cb3a5f8125f06ec4ee (diff)
downloadnixlib-206e4a6d69f25e47254bbd33f935f85d97441259.tar
nixlib-206e4a6d69f25e47254bbd33f935f85d97441259.tar.gz
nixlib-206e4a6d69f25e47254bbd33f935f85d97441259.tar.bz2
nixlib-206e4a6d69f25e47254bbd33f935f85d97441259.tar.lz
nixlib-206e4a6d69f25e47254bbd33f935f85d97441259.tar.xz
nixlib-206e4a6d69f25e47254bbd33f935f85d97441259.tar.zst
nixlib-206e4a6d69f25e47254bbd33f935f85d97441259.zip
tor-browser-bundle: basic checks for the wrapper script
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/browsers/tor-browser-bundle/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix b/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix
index 979aac5b92f8..ca20125332aa 100644
--- a/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix
+++ b/pkgs/applications/networking/browsers/tor-browser-bundle/default.nix
@@ -359,6 +359,13 @@ stdenv.mkDerivation rec {
         "\$@"
     EOF
     chmod +x $out/bin/tor-browser
+
+    echo "Syntax checking wrapper ..."
+    bash -n $out/bin/tor-browser
+
+    echo "Checking wrapper ..."
+    DISPLAY="" XAUTHORITY="" DBUS_SESSION_BUS_ADDRESS="" TBB_HOME=$TMPDIR/tbb \
+    $out/bin/tor-browser -version >/dev/null
   '';
 
   meta = with stdenv.lib; {