mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-21 18:55:36 +02:00
feat(nix): add single-file-cli and chromium to both wrappers
This commit is contained in:
parent
fe9ff2dafe
commit
c9ce0ee00b
1 changed files with 9 additions and 1 deletions
10
flake.nix
10
flake.nix
|
|
@ -105,6 +105,8 @@
|
|||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
buildInputs = [
|
||||
pkgs.yt-dlp
|
||||
pkgs.single-file-cli
|
||||
pkgs.chromium
|
||||
tweetPython
|
||||
];
|
||||
phases = [ "installPhase" ];
|
||||
|
|
@ -115,11 +117,15 @@
|
|||
chmod +x $out/libexec/archivr/scrape_user_tweet_contents.py
|
||||
makeWrapper $out/libexec/archivr/archivr $out/bin/archivr \
|
||||
--set ARCHIVR_YT_DLP ${pkgs.yt-dlp}/bin/yt-dlp \
|
||||
--set ARCHIVR_SINGLE_FILE ${pkgs.single-file-cli}/bin/single-file \
|
||||
--set ARCHIVR_CHROME ${pkgs.chromium}/bin/chromium \
|
||||
--set ARCHIVR_TWEET_PYTHON ${tweetPython}/bin/python3 \
|
||||
--set ARCHIVR_TWEET_SCRAPER $out/libexec/archivr/scrape_user_tweet_contents.py \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
pkgs.yt-dlp
|
||||
pkgs.single-file-cli
|
||||
pkgs.chromium
|
||||
tweetPython
|
||||
]
|
||||
}
|
||||
|
|
@ -129,7 +135,7 @@
|
|||
pname = "archivr-server-wrapped";
|
||||
inherit version;
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
buildInputs = [ tweetPython ];
|
||||
buildInputs = [ tweetPython pkgs.single-file-cli pkgs.chromium ];
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/libexec/archivr-server $out/share/archivr-server/static
|
||||
|
|
@ -139,6 +145,8 @@
|
|||
cp -r ${./crates/archivr-server/static}/* $out/share/archivr-server/static/
|
||||
makeWrapper $out/libexec/archivr-server/archivr-server $out/bin/archivr-server \
|
||||
--set ARCHIVR_STATIC_DIR $out/share/archivr-server/static \
|
||||
--set ARCHIVR_SINGLE_FILE ${pkgs.single-file-cli}/bin/single-file \
|
||||
--set ARCHIVR_CHROME ${pkgs.chromium}/bin/chromium \
|
||||
--set ARCHIVR_TWEET_PYTHON ${tweetPython}/bin/python3 \
|
||||
--set ARCHIVR_TWEET_SCRAPER $out/libexec/archivr-server/scrape_user_tweet_contents.py
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue