From d034d1a29980fbf9ae31a7665b2353cc4f3dca41 Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Mon, 1 Sep 2025 15:23:45 +1000 Subject: [PATCH] R is updated to weekly rstats-on-nix version --- templates/rde/flake.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/rde/flake.nix b/templates/rde/flake.nix index 8e1aaee..141d6ee 100644 --- a/templates/rde/flake.nix +++ b/templates/rde/flake.nix @@ -241,10 +241,13 @@ echo "🔄 Updating project dependencies..." - if [[ -f "flake.lock" ]]; then - nix flake update - echo "✅ Flake inputs updated" - fi + 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 '"' ) &&\ + + 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 + echo "✅ R date is $RVER" + + nix flake update + echo "✅ Flake inputs updated" if [[ -f "pyproject.toml" ]]; then uv sync --upgrade @@ -637,7 +640,7 @@ }); }; inputs = { - rixpkgs.url = "https://github.com/rstats-on-nix/nixpkgs/archive/2025-08-11.tar.gz"; + rixpkgs.url = "github:rstats-on-nix/nixpkgs/2025-08-25"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixCats = { url = "github:dwinkler1/nixCatsConfig";