File tree 3 files changed +8
-6
lines changed 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 23
23
gdk = pkgs . google-cloud-sdk . withExtraComponents ( [ pkgs . google-cloud-sdk . components . gke-gcloud-auth-plugin ] ) ;
24
24
25
25
# The minimal set of packages to build Coder.
26
- devShellPackages = with pkgs ; buildPackages ++ [
26
+ devShellPackages = with pkgs ; [
27
27
# google-chrome is not available on OSX
28
28
( if pkgs . stdenv . hostPlatform . isDarwin then null else google-chrome )
29
29
# strace is not available on OSX
124
124
} ;
125
125
in
126
126
{
127
- defaultPackage = formatter ; # or replace it with your desired default package.
128
127
devShell = pkgs . mkShell {
129
128
shellHook = ''
130
129
export PLAYWRIGHT_BROWSERS_PATH=${ pkgs . playwright-driver . browsers }
131
130
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
132
131
'' ;
133
132
} ;
134
133
packages = {
134
+ all = pkgs . buildEnv {
135
+ name = "all-packages" ;
136
+ paths = devShellPackages ;
137
+ } ;
135
138
site = buildSite ;
136
139
137
140
# Copying `OS_ARCHES` from the Makefile.
Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ SCRIPT="${BASH_SOURCE[1]:-${BASH_SOURCE[0]}}"
43
43
SCRIPT_DIR=" $( realpath " $( dirname " $SCRIPT " ) " ) "
44
44
45
45
function project_root {
46
- # If NIX_BUILD_TOP is set, we are in a Nix build and the project root is the
47
- # top of the build directory.
48
- [[ -n " ${NIX_BUILD_TOP:- } " ]] && echo " $src " && return
46
+ # Nix sets $src in derivations!
47
+ [[ -n " ${src:- } " ]] && echo " $src " && return
49
48
50
49
# Try to use `git rev-parse --show-toplevel` to find the project root.
51
50
# If this directory is not a git repository, this command will fail.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.."
7
7
8
8
OUT=$( mktemp -d -t nar-hash-XXXXXX)
9
9
10
- echo " Downloading Go modules..."
10
+ echo " Downloading Go modules..."
11
11
GOPATH=" $OUT " go mod download
12
12
echo " Calculating SRI hash..."
13
13
HASH=$( go run tailscale.com/cmd/nardump --sri " $OUT /pkg/mod/cache/download" )
You can’t perform that action at this time.
0 commit comments