File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Build stage
2
- FROM nixos/nix:2.19.2 as nix
2
+ FROM nixos/nix:2.19.2 AS nix
3
3
4
4
# enable --experimental-features 'nix-command flakes' globally
5
5
# 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 && \
14
14
nix-collect-garbage - d
15
15
16
16
# Final image
17
- FROM codercom/enterprise-base:latest as final
17
+ FROM codercom/enterprise-base:latest AS final
18
18
19
19
# Set the non-root user
20
20
USER root
Original file line number Diff line number Diff line change 61
61
# google-chrome is not available on OSX and aarch64 linux
62
62
( if pkgs . stdenv . hostPlatform . isDarwin || pkgs . stdenv . hostPlatform . isAarch64 then null else google-chrome )
63
63
# strace is not available on OSX
64
- ( if pkgs . stdenv . hostPlatform . isDarwin then null else strace )
64
+ ( lib . optionalDrvAttr ( ! pkgs . stdenv . isDarwin ) strace )
65
65
bat
66
66
cairo
67
67
curl
68
68
delve
69
69
drpc . defaultPackage . ${ system }
70
+ fzf
70
71
gcc
71
72
gdk
72
73
getopt
73
74
gh
74
75
git
76
+ ( lib . optionalDrvAttr stdenv . isLinux glibcLocales )
75
77
gnumake
76
78
gnused
77
79
go_1_22
87
89
mockgen
88
90
nfpm
89
91
nodejs
92
+ neovim
90
93
pnpm
91
94
openssh
92
95
openssl
98
101
protobuf
99
102
proto_gen_go_1_30
100
103
ripgrep
101
- # This doesn't build on latest nixpkgs (July 10 2024)
102
- ( pinnedPkgs . sapling )
103
104
shellcheck
104
105
( pinnedPkgs . shfmt )
105
106
sqlc
165
166
export PLAYWRIGHT_BROWSERS_PATH=${ pkgs . playwright-driver . browsers }
166
167
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
167
168
'' ;
169
+
170
+ LOCALE_ARCHIVE = with pkgs ; lib . optionalDrvAttr stdenv . isLinux "${ glibcLocales } /lib/locale/locale-archive" ;
168
171
} ;
169
172
packages = {
170
173
proto_gen_go = proto_gen_go_1_30 ;
You can’t perform that action at this time.
0 commit comments