mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 03:05:32 +02:00
feat: package istilldontcareaboutcookies in flake, wire ARCHIVR_COOKIE_EXT
Add isdcac derivation mirroring ublockLite: - Fetches ISDCAC-chrome-source.zip v1.1.9 from GitHub releases - Validates manifest.json at extension root before install (guard against nested-folder zip regressions in future releases) - Sets ARCHIVR_COOKIE_EXT in both archivr and archivr_server wrappers Verified: nix build .#archivr-server and .#archivr both succeed; wrapper scripts export correct store paths; manifest.json present at root.
This commit is contained in:
parent
83d4ca57e7
commit
2f7724f928
1 changed files with 21 additions and 1 deletions
22
flake.nix
22
flake.nix
|
|
@ -76,6 +76,24 @@
|
||||||
cp -r . $out/
|
cp -r . $out/
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
# I Still Don't Care About Cookies (MV3) — unpacked Chromium extension
|
||||||
|
# for dismissing cookie consent banners during headless captures.
|
||||||
|
# Fetched from GitHub releases; update version + hash together.
|
||||||
|
isdcac = pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "istilldontcareaboutcookies";
|
||||||
|
version = "1.1.9";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies/releases/download/v1.1.9/ISDCAC-chrome-source.zip";
|
||||||
|
hash = "sha256-j3CrlHyy0nT0AiqXD13Tzs2OwCsGDgUYe++e48sYu8s=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [ pkgs.unzip ];
|
||||||
|
sourceRoot = ".";
|
||||||
|
installPhase = ''
|
||||||
|
test -f manifest.json || { echo "ERROR: manifest.json not at extension root; zip structure may have changed"; exit 1; }
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r . $out/
|
||||||
|
'';
|
||||||
|
};
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = pkgs.lib.cleanSource ./.;
|
src = pkgs.lib.cleanSource ./.;
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|
@ -140,6 +158,7 @@
|
||||||
--set ARCHIVR_TWEET_PYTHON ${tweetPython}/bin/python3 \
|
--set ARCHIVR_TWEET_PYTHON ${tweetPython}/bin/python3 \
|
||||||
--set ARCHIVR_TWEET_SCRAPER $out/libexec/archivr/scrape_user_tweet_contents.py \
|
--set ARCHIVR_TWEET_SCRAPER $out/libexec/archivr/scrape_user_tweet_contents.py \
|
||||||
--set ARCHIVR_UBLOCK_EXT ${ublockLite} \
|
--set ARCHIVR_UBLOCK_EXT ${ublockLite} \
|
||||||
|
--set ARCHIVR_COOKIE_EXT ${isdcac} \
|
||||||
--prefix PATH : ${
|
--prefix PATH : ${
|
||||||
lib.makeBinPath ([
|
lib.makeBinPath ([
|
||||||
pkgs.yt-dlp
|
pkgs.yt-dlp
|
||||||
|
|
@ -167,7 +186,8 @@
|
||||||
${lib.optionalString pkgs.stdenv.isLinux "--set ARCHIVR_CHROME ${pkgs.chromium}/bin/chromium"} \
|
${lib.optionalString pkgs.stdenv.isLinux "--set ARCHIVR_CHROME ${pkgs.chromium}/bin/chromium"} \
|
||||||
--set ARCHIVR_TWEET_PYTHON ${tweetPython}/bin/python3 \
|
--set ARCHIVR_TWEET_PYTHON ${tweetPython}/bin/python3 \
|
||||||
--set ARCHIVR_TWEET_SCRAPER $out/libexec/archivr-server/scrape_user_tweet_contents.py \
|
--set ARCHIVR_TWEET_SCRAPER $out/libexec/archivr-server/scrape_user_tweet_contents.py \
|
||||||
--set ARCHIVR_UBLOCK_EXT ${ublockLite}
|
--set ARCHIVR_UBLOCK_EXT ${ublockLite} \
|
||||||
|
--set ARCHIVR_COOKIE_EXT ${isdcac}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
archivr-all = pkgs.symlinkJoin {
|
archivr-all = pkgs.symlinkJoin {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue