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

Commit1275610

Browse files
committed
fix(flake.nix): Install locales on linux host devShells
Change-Id: I22dba63d317b41749c807a55e15278006cdcecadSigned-off-by: Thomas Kosiewski <tk@coder.com>
1 parent8f02e63 commit1275610

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎dogfood/contents/Dockerfile.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROMnixos/nix:2.19.2asnix
2+
FROMnixos/nix:2.19.2ASnix
33

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

1616
# Final image
17-
FROMcodercom/enterprise-base:latestasfinal
17+
FROMcodercom/enterprise-base:latestASfinal
1818

1919
# Set the non-root user
2020
USERroot

‎flake.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,19 @@
6161
# google-chrome is not available on OSX and aarch64 linux
6262
(ifpkgs.stdenv.hostPlatform.isDarwin||pkgs.stdenv.hostPlatform.isAarch64thennullelsegoogle-chrome)
6363
# strace is not available on OSX
64-
(ifpkgs.stdenv.hostPlatform.isDarwinthennullelsestrace)
64+
(lib.optionalDrvAttr(!pkgs.stdenv.isDarwin)strace)
6565
bat
6666
cairo
6767
curl
6868
delve
6969
drpc.defaultPackage.${system}
70+
fzf
7071
gcc
7172
gdk
7273
getopt
7374
gh
7475
git
76+
(lib.optionalDrvAttrstdenv.isLinuxglibcLocales)
7577
gnumake
7678
gnused
7779
go_1_22
@@ -87,6 +89,7 @@
8789
mockgen
8890
nfpm
8991
nodejs
92+
neovim
9093
pnpm
9194
openssh
9295
openssl
@@ -98,8 +101,6 @@
98101
protobuf
99102
proto_gen_go_1_30
100103
ripgrep
101-
# This doesn't build on latest nixpkgs (July 10 2024)
102-
(pinnedPkgs.sapling)
103104
shellcheck
104105
(pinnedPkgs.shfmt)
105106
sqlc
@@ -165,6 +166,8 @@
165166
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
166167
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
167168
'';
169+
170+
LOCALE_ARCHIVE=withpkgs;lib.optionalDrvAttrstdenv.isLinux"${glibcLocales}/lib/locale/locale-archive";
168171
};
169172
packages={
170173
proto_gen_go=proto_gen_go_1_30;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp