From 212f4a4fb20449d51bbc403e3d140778aab4d18a Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 1 Jul 2025 18:20:46 -0500 Subject: [PATCH] ci: update-maintainers fetch nixpkgs from flake.lock rev We need a nixpkgs on NIX_PATH. Right now we have been using the latest from channel. But, we can actually just fetch the nixpkgs from our flake.lock by parsing the flake.lock. Signed-off-by: Austin Horstman --- .github/workflows/update-maintainers.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/update-maintainers.yml b/.github/workflows/update-maintainers.yml index 40c427d0b..236234775 100644 --- a/.github/workflows/update-maintainers.yml +++ b/.github/workflows/update-maintainers.yml @@ -38,8 +38,14 @@ jobs: uses: actions/checkout@v4 with: token: ${{ steps.app-token.outputs.token }} + - name: Get Nixpkgs revision from flake.lock + id: get-nixpkgs + run: | + echo "rev=$(jq -r '.nodes.nixpkgs.locked.rev' flake.lock)" >> "$GITHUB_OUTPUT" - name: Install Nix uses: cachix/install-nix-action@v31 + with: + nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ steps.get-nixpkgs.outputs.rev }}.tar.gz - name: Setup Git run: | git config user.name "${{ steps.user-info.outputs.name }}"