Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ec48ad

Browse files
authored
fix(flake.nix): fix coder binary build (#16154)
Change-Id: I2adc511dd7b4de4e221e74234ec1eae743589caf Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent ad02b74 commit 0ec48ad

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

flake.nix

+7-3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
kubectl
8686
kubectx
8787
kubernetes-helm
88+
lazygit
8889
less
8990
mockgen
9091
moreutils
@@ -144,7 +145,7 @@
144145
name = "coder-${osArch}";
145146
# Updated with ./scripts/update-flake.sh`.
146147
# This should be updated whenever go.mod changes!
147-
vendorHash = "sha256-Tsajkkp+NMjYRCpRX5HlSy/sCSpuABIGDM1jeavVe+w=";
148+
vendorHash = "sha256-ykLZqtALSvDpBc2yEjRGdOyCFNsnLZiGid0d4s27e8Q=";
148149
proxyVendor = true;
149150
src = ./.;
150151
nativeBuildInputs = with pkgs; [ getopt openssl zstd ];
@@ -156,12 +157,15 @@
156157
runHook preBuild
157158
158159
# Unpack the site contents.
159-
mkdir -p ./site/out
160+
mkdir -p ./site/out ./site/node_modules/
160161
cp -r ${buildSite.out}/* ./site/out
162+
touch ./site/node_modules/.installed
161163
162164
# Build and copy the binary!
163165
export CODER_FORCE_VERSION=${version}
164-
make -j build/coder_${osArch}
166+
# Flagging 'site/node_modules/.installed' as an old file,
167+
# as we do not want to trigger codegen during a build.
168+
make -j -o 'site/node_modules/.installed' build/coder_${osArch}
165169
'';
166170
installPhase = ''
167171
mkdir -p $out/bin

0 commit comments

Comments
 (0)