Moved to flake templates

This commit is contained in:
Daniel Winkler 2025-05-15 10:39:47 +02:00
commit d1c00ee15c
No known key found for this signature in database
5 changed files with 80 additions and 68 deletions

4
templates/r/Justfile Normal file
View file

@ -0,0 +1,4 @@
rverurl := 'https://raw.githubusercontent.com/ropensci/rix/refs/heads/main/inst/extdata/available_df.csv'
update-r-version:
RVER=$( wget -qO- {{rverurl}} | tail -n 2 | head -n 1 | cut -d',' -f4 | tr -d '"' ) &&\
sed -i "s|rixpkgs.url = \"https://github.com/rstats-on-nix/nixpkgs/archive/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\.tar\.gz\";|rixpkgs.url = \"https://github.com/rstats-on-nix/nixpkgs/archive/$RVER.tar.gz\";|" flake.nix