diff --git a/pkgs/firefox-history-exporter/manifest.json b/pkgs/firefox-history-exporter/manifest.json index 34ea75f..2b83202 100644 --- a/pkgs/firefox-history-exporter/manifest.json +++ b/pkgs/firefox-history-exporter/manifest.json @@ -16,7 +16,10 @@ }, "browser_specific_settings": { "gecko": { - "id": "firefox-history-exporter@nmasur.com" + "id": "firefox-history-exporter@nmasur.com", + "data_collection_permissions": { + "required": ["none"] + } } } } diff --git a/pkgs/firefox-history-exporter/package.nix b/pkgs/firefox-history-exporter/package.nix index 5b57df9..dc5fa31 100644 --- a/pkgs/firefox-history-exporter/package.nix +++ b/pkgs/firefox-history-exporter/package.nix @@ -7,13 +7,16 @@ pkgs.stdenv.mkDerivation rec { nativeBuildInputs = [ pkgs.zip ]; - # We aren't building, just packaging dontUnpack = true; - buildCommand = '' + installPhase = '' dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" mkdir -p "$dst" - (cd ${src}; zip "$dst/firefox-history-exporter@nmasur.com.xpi" manifest.json background.js popup.html popup.js) + zip -j "$dst/firefox-history-exporter@nmasur.com.xpi" \ + "${src}/manifest.json" \ + "${src}/background.js" \ + "${src}/popup.html" \ + "${src}/popup.js" ''; meta = with pkgs.lib; { diff --git a/platforms/home-manager/modules/nmasur/presets/programs/firefox.nix b/platforms/home-manager/modules/nmasur/presets/programs/firefox.nix index 19cefac..0b6890b 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/firefox.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/firefox.nix @@ -47,7 +47,7 @@ in vimium wappalyzer # TODO: only for work profile pkgs.nmasur.firefox-history-exporter - copy-as-markdown + # copy-as-markdown # saml-tracer # text-fragment ];