Fix sed command syntax for URL update

This commit is contained in:
Daniel Winkler 2026-02-09 17:12:18 +11:00 committed by GitHub
commit 07f6d703c7
Failed to generate hash of commit

View file

@ -7,5 +7,5 @@ pkgs: ''
$pg --json s3alfisc summclust > versions/summclust.json
$pg --json synth-inference synthdid > versions/synthdid.json
RVER=$( wget -qO- 'https://raw.githubusercontent.com/ropensci/rix/refs/heads/main/inst/extdata/available_df.csv' | tail -n 1 | head -n 1 | cut -d',' -f4 | tr -d '"' )
${pkgs.sed}/bin/sed -i "s|rixpkgs.url = \"github:rstats-on-nix/nixpkgs/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\";|rixpkgs.url = \"github:rstats-on-nix/nixpkgs/$RVER\";|" ../flake.nix
sed -i "s|rixpkgs.url = \"github:rstats-on-nix/nixpkgs/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\";|rixpkgs.url = \"github:rstats-on-nix/nixpkgs/$RVER\";|" ../flake.nix
''