File tree 4 files changed +58
-9
lines changed
4 files changed +58
-9
lines changed Original file line number Diff line number Diff line change 35
35
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36
36
37
37
- name : Setup Nix
38
- uses : DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16
38
+ uses : nixbuild/nix-quick-install-action@5bb6a3b3abe66fd09bbf250dce8ada94f856a703 # v30
39
+
40
+ - uses : nix-community/cache-nix-action@aee88ae5efbbeb38ac5d9862ecbebdb404a19e69 # v6.1.1
41
+ with :
42
+ # restore and save a cache using this key
43
+ primary-key : nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
44
+ # if there's no cache hit, restore a cache by this prefix
45
+ restore-prefixes-first-match : nix-${{ runner.os }}-
46
+ # collect garbage until Nix store size (in bytes) is at most this number
47
+ # before trying to save a new cache
48
+ # 1G = 1073741824
49
+ gc-max-store-size-linux : 2G
50
+ # do purge caches
51
+ purge : true
52
+ # purge all versions of the cache
53
+ purge-prefixes : nix-${{ runner.os }}-
54
+ # created more than this number of seconds ago relative to the start of the `Post Restore` phase
55
+ purge-created : 0
56
+ # except the version with the `primary-key`, if it exists
57
+ purge-primary-key : never
39
58
40
59
- name : Get branch name
41
60
id : branch-name
Original file line number Diff line number Diff line change 1
- f41c80bd08bfef063a9cfe907d0ea1f377974ebe011751f64008a3a07a6b152a flake.nix
2
- 32c441011f1f3054a688c036a85eac5e4c3dbef0f8cfa4ab85acd82da577dc35 flake.lock
1
+ f09cd2cbbcdf00f5e855c6ddecab6008d11d871dc4ca5e1bc90aa14d4e3a2cfd flake.nix
2
+ 0d2489a26d149dade9c57ba33acfdb309b38100ac253ed0c67a2eca04a187e37 flake.lock
Original file line number Diff line number Diff line change 3
3
4
4
inputs = {
5
5
nixpkgs . url = "github:nixos/nixpkgs/nixos-24.11" ;
6
+ nixpkgs-unstable . url = "github:nixos/nixpkgs/nixos-unstable" ;
6
7
nixpkgs-pinned . url = "github:nixos/nixpkgs/5deee6281831847857720668867729617629ef1f" ;
7
8
flake-utils . url = "github:numtide/flake-utils" ;
8
9
pnpm2nix = {
22
23
self ,
23
24
nixpkgs ,
24
25
nixpkgs-pinned ,
26
+ nixpkgs-unstable ,
25
27
flake-utils ,
26
28
drpc ,
27
29
pnpm2nix ,
31
33
let
32
34
pkgs = import nixpkgs {
33
35
inherit system ;
34
- # Workaround for: terraform has an unfree license (‘bsl11 ’), refusing to evaluate.
36
+ # Workaround for: google-chrome has an unfree license (‘unfree ’), refusing to evaluate.
35
37
config . allowUnfree = true ;
36
38
} ;
37
39
41
43
inherit system ;
42
44
} ;
43
45
46
+ unstablePkgs = import nixpkgs-unstable {
47
+ inherit system ;
48
+
49
+ # Workaround for: terraform has an unfree license (‘bsl11’), refusing to evaluate.
50
+ config . allowUnfreePredicate =
51
+ pkg :
52
+ builtins . elem ( pkgs . lib . getName pkg ) [
53
+ "terraform"
54
+ ] ;
55
+ } ;
56
+
44
57
formatter = pkgs . nixfmt-rfc-style ;
45
58
46
59
nodejs = pkgs . nodejs_20 ;
148
161
shellcheck
149
162
( pinnedPkgs . shfmt )
150
163
sqlc
151
- terraform
164
+ unstablePkgs . terraform
152
165
typos
153
166
which
154
167
# Needed for many LD system libs!
185
198
name = "coder-${ osArch } " ;
186
199
# Updated with ./scripts/update-flake.sh`.
187
200
# This should be updated whenever go.mod changes!
188
- vendorHash = "sha256-QjqF+QZ5JKMnqkpNh6ZjrJU2QcSqiT4Dip1KoicwLYc =" ;
201
+ vendorHash = "sha256-6sdvX0Wglj0CZiig2VD45JzuTcxwg7yrGoPPQUYvuqU =" ;
189
202
proxyVendor = true ;
190
203
src = ./. ;
191
204
nativeBuildInputs = with pkgs ; [
You can’t perform that action at this time.
0 commit comments