mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(flake.nix): fix coder binary build (#16154)
Change-Id: I2adc511dd7b4de4e221e74234ec1eae743589caf Signed-off-by: Thomas Kosiewski <tk@coder.com>
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
kubectl
|
kubectl
|
||||||
kubectx
|
kubectx
|
||||||
kubernetes-helm
|
kubernetes-helm
|
||||||
|
lazygit
|
||||||
less
|
less
|
||||||
mockgen
|
mockgen
|
||||||
moreutils
|
moreutils
|
||||||
@@ -144,7 +145,7 @@
|
|||||||
name = "coder-${osArch}";
|
name = "coder-${osArch}";
|
||||||
# Updated with ./scripts/update-flake.sh`.
|
# Updated with ./scripts/update-flake.sh`.
|
||||||
# This should be updated whenever go.mod changes!
|
# This should be updated whenever go.mod changes!
|
||||||
vendorHash = "sha256-Tsajkkp+NMjYRCpRX5HlSy/sCSpuABIGDM1jeavVe+w=";
|
vendorHash = "sha256-ykLZqtALSvDpBc2yEjRGdOyCFNsnLZiGid0d4s27e8Q=";
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = with pkgs; [ getopt openssl zstd ];
|
nativeBuildInputs = with pkgs; [ getopt openssl zstd ];
|
||||||
@@ -156,12 +157,15 @@
|
|||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
# Unpack the site contents.
|
# Unpack the site contents.
|
||||||
mkdir -p ./site/out
|
mkdir -p ./site/out ./site/node_modules/
|
||||||
cp -r ${buildSite.out}/* ./site/out
|
cp -r ${buildSite.out}/* ./site/out
|
||||||
|
touch ./site/node_modules/.installed
|
||||||
|
|
||||||
# Build and copy the binary!
|
# Build and copy the binary!
|
||||||
export CODER_FORCE_VERSION=${version}
|
export CODER_FORCE_VERSION=${version}
|
||||||
make -j build/coder_${osArch}
|
# Flagging 'site/node_modules/.installed' as an old file,
|
||||||
|
# as we do not want to trigger codegen during a build.
|
||||||
|
make -j -o 'site/node_modules/.installed' build/coder_${osArch}
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user