diff --git a/pkgs/development/tools/coder/default.nix b/pkgs/development/tools/coder/default.nix index a96cf652df25..48e47dd06631 100644 --- a/pkgs/development/tools/coder/default.nix +++ b/pkgs/development/tools/coder/default.nix @@ -29,12 +29,9 @@ buildGoModule rec { hash = "sha256-nRmEXR9fjDxvpbnT+qpGeM0Cc/qW/kN53sKOXwZiBXY="; }; - subPackages = [ "cmd/..." ]; - vendorHash = "sha256-+AvmJkZCFovE2+5Lg98tUvA7f2kBHUMzhl5IyrEGuy8="; - # integration tests require network access - doCheck = false; + tags = [ "embed" ]; ldflags = [ "-s" @@ -42,6 +39,8 @@ buildGoModule rec { "-X github.com/coder/coder/buildinfo.tag=${version}" ]; + subPackages = [ "cmd/..." ]; + preBuild = '' export HOME=$TEMPDIR @@ -57,8 +56,6 @@ buildGoModule rec { popd ''; - tags = [ "embed" ]; - nativeBuildInputs = [ fixup_yarn_lock installShellFiles @@ -79,10 +76,15 @@ buildGoModule rec { wrapProgram $out/bin/coder --prefix PATH : ${lib.makeBinPath [ terraform ]} ''; - meta = with lib; { + # integration tests require network access + doCheck = false; + + meta = { description = "Provision software development environments via Terraform on Linux, macOS, Windows, X86, ARM, and of course, Kubernetes"; homepage = "https://coder.com"; - license = licenses.agpl3; - maintainers = with maintainers; [ ghuntley urandom ]; + license = lib.licenses.agpl3; + maintainers = [ lib.maintainers.ghuntley lib.maintainers.urandom ]; + # Failed to download Chromium 109.0.5414.46 + broken = true; # At 2023-03-30 }; }