File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ name: Nix CI
17
17
env :
18
18
# https://stackoverflow.com/a/71158878
19
19
git_pull : git pull --rebase origin ${{ github.head_ref || github.ref_name }}
20
+ pin_nixpkgs : nix registry pin nixpkgs github:NixOS/nixpkgs/807c549feabce7eddbf259dbdcec9e0600a0660d
20
21
21
22
jobs :
22
23
# Build the action
@@ -117,6 +118,9 @@ jobs:
117
118
# except the version with the `primary-key`, if it exists
118
119
purge-primary-key : never
119
120
121
+ - name : Pin nixpkgs
122
+ run : ${{ env.pin_nixpkgs }}
123
+
120
124
- name : Install nixpkgs#bun
121
125
if : ${{ matrix.id == 1 }}
122
126
run : nix profile install nixpkgs#bun
@@ -225,12 +229,14 @@ jobs:
225
229
- name : Show profile
226
230
run : nix profile list
227
231
228
- - name : Lock and install nixpkgs
229
- run : |
230
- nix registry add nixpkgs github:NixOS/nixpkgs/5daaa32204e9c46b05cd709218b7ba733d07e80c
231
- nix registry list
232
-
233
- nix profile install $(nix flake archive nixpkgs --json | jq -r '.path')
232
+ - name : Pin nixpkgs
233
+ run : ${{ env.pin_nixpkgs }}
234
+
235
+ - name : List registry
236
+ run : nix registry list
237
+
238
+ - name : Install nixpkgs
239
+ run : nix profile install $(nix flake archive nixpkgs --json | jq -r '.path')
234
240
235
241
- name : Show profile
236
242
run : nix profile list
You can’t perform that action at this time.
0 commit comments