Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(flake.nix): install locales on linux host devShells#16120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletionsdogfood/contents/Dockerfile.nix
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
# Build stage
FROMnixos/nix:2.19.2asnix
FROMnixos/nix:2.19.2ASnix

# enable --experimental-features 'nix-command flakes' globally
# nix does not enable these features by default these are required to run commands like
Expand All@@ -14,7 +14,7 @@ RUN nix profile install "/app#all" --priority 4 && \
nix-collect-garbage-d

# Final image
FROMcodercom/enterprise-base:latestasfinal
FROMcodercom/enterprise-base:latestASfinal

# Set the non-root user
USERroot
Expand Down
14 changes: 9 additions & 5 deletionsflake.nix
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -58,20 +58,22 @@

# The minimal set of packages to build Coder.
devShellPackages = with pkgs; [
# google-chrome is not available onOSX andaarch64 linux
(if pkgs.stdenv.hostPlatform.isDarwin ||pkgs.stdenv.hostPlatform.isAarch64then null else google-chrome)
# google-chrome is not available on aarch64 linux
(lib.optionalDrvAttr ( !stdenv.isLinux ||!stdenv.isAarch64) google-chrome)
# strace is not available on OSX
(ifpkgs.stdenv.hostPlatform.isDarwinthen null else strace)
(lib.optionalDrvAttr ( !pkgs.stdenv.isDarwin) strace)
bat
cairo
curl
delve
drpc.defaultPackage.${system}
fzf
gcc
gdk
getopt
gh
git
(lib.optionalDrvAttr stdenv.isLinux glibcLocales)
gnumake
gnused
go_1_22
Expand All@@ -85,8 +87,10 @@
kubernetes-helm
less
mockgen
moreutils
nfpm
nodejs
neovim
pnpm
openssh
openssl
Expand All@@ -98,8 +102,6 @@
protobuf
proto_gen_go_1_30
ripgrep
# This doesn't build on latest nixpkgs (July 10 2024)
(pinnedPkgs.sapling)
shellcheck
(pinnedPkgs.shfmt)
sqlc
Expand DownExpand Up@@ -165,6 +167,8 @@
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
'';

LOCALE_ARCHIVE = with pkgs; lib.optionalDrvAttr stdenv.isLinux "${glibcLocales}/lib/locale/locale-archive";
};
packages = {
proto_gen_go = proto_gen_go_1_30;
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp