Skip to content

Commit

Permalink
use builtin to fetch pinned nixpkgs (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
turboMaCk authored Jan 13, 2024
1 parent 29bc920 commit a579f76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down
6 changes: 2 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
let
nixpkgs =
# updated 28/08/20
(import <nixpkgs> {}).fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
rev = "c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38";
builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/archive/c59ea8b.tar.gz";
sha256 = "1ak7jqx94fjhc68xh1lh35kh3w3ndbadprrb762qgvcfb8351x8v";
};

Expand Down

0 comments on commit a579f76

Please sign in to comment.