From a579f76c93c464d6e6b19c77644b2dd0663b05e2 Mon Sep 17 00:00:00 2001 From: Marek Fajkus Date: Sat, 13 Jan 2024 20:23:32 +0100 Subject: [PATCH] use builtin to fetch pinned nixpkgs (#88) --- .github/workflows/build.yml | 6 +++--- default.nix | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 515cfb6..c833c27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,12 +8,12 @@ jobs: build-all: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 - - uses: cachix/install-nix-action@v12 + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v22 with: nix_path: nixpkgs=channel:nixos-unstable - run: nix-shell -p elmPackages.elm-format --run "elm-format --validate client" - - uses: cachix/cachix-action@v8 + - uses: cachix/cachix-action@v12 with: name: planning-game authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' diff --git a/default.nix b/default.nix index 6a1af54..0da3908 100644 --- a/default.nix +++ b/default.nix @@ -1,10 +1,8 @@ let nixpkgs = # updated 28/08/20 - (import {}).fetchFromGitHub { - owner = "NixOS"; - repo = "nixpkgs-channels"; - rev = "c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38"; + builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs-channels/archive/c59ea8b.tar.gz"; sha256 = "1ak7jqx94fjhc68xh1lh35kh3w3ndbadprrb762qgvcfb8351x8v"; };