{tor,mullvad}-browser: remove unnecessary auto-update policies (#524873)

This commit is contained in:
Felix Schröter
2026-06-01 10:49:05 +00:00
committed by GitHub
2 changed files with 3 additions and 17 deletions
+1 -8
View File
@@ -123,12 +123,6 @@ let
};
}
);
policiesJson = writeText "policies.json" (
builtins.toJSON {
policies.DisableAppUpdate = true;
}
);
in
stdenv.mkDerivation rec {
pname = "mullvad-browser";
@@ -200,7 +194,7 @@ stdenv.mkDerivation rec {
mv mullvadbrowser.real mullvadbrowser
# store state at `~/.mullvad` instead of relative to executable
touch "$MB_IN_STORE/system-install"
touch "$MB_IN_STORE/is-packaged-app"
# Add bundled libraries to libPath.
libPath=${libPath}:$MB_IN_STORE
@@ -282,7 +276,6 @@ stdenv.mkDerivation rec {
# Install distribution customizations
install -Dvm644 ${distributionIni} $out/share/mullvad-browser/distribution/distribution.ini
install -Dvm644 ${policiesJson} $out/share/mullvad-browser/distribution/policies.json
runHook postInstall
'';
+2 -9
View File
@@ -136,12 +136,6 @@ let
};
}
);
policiesJson = writeText "policies.json" (
builtins.toJSON {
policies.DisableAppUpdate = true;
}
);
in
stdenv.mkDerivation rec {
pname = "tor-browser";
@@ -213,8 +207,8 @@ stdenv.mkDerivation rec {
# firefox is a wrapper that checks for a more recent libstdc++ & appends it to the ld path
mv firefox.real firefox
# store state at `~/.tor browser` instead of relative to executable
touch "$TBB_IN_STORE/system-install"
# store state at `~/.tor project` instead of relative to executable
touch "$TBB_IN_STORE/is-packaged-app"
# The final libPath. Note, we could split this into firefoxLibPath
# and torLibPath for accuracy, but this is more convenient ...
@@ -331,7 +325,6 @@ stdenv.mkDerivation rec {
# Install distribution customizations
install -Dvm644 ${distributionIni} $out/share/tor-browser/distribution/distribution.ini
install -Dvm644 ${policiesJson} $out/share/tor-browser/distribution/policies.json
runHook postInstall
'';