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

Commit00e2703

Browse files
authored
fix(flake.nix): add procps to nix dogfood image (#16607)
Add procps to flake.nix and release name to Docker imageAdds the `procps` package to flake.nix to enable the `free` command, and includes a release name file in the Docker image at `/etc/coderniximage-release`.Change-Id: I85432acc06a204229fa3675e0020bd3acacf775aSigned-off-by: Thomas Kosiewski <tk@coder.com>
1 parent5e96fb5 commit00e2703

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@
281281
unzip
282282
zip
283283
gzip
284+
procps# free
284285
])
285286
++oldAttrs.buildInputs;
286287
});

‎nix/docker.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ let
5050
experimental-features = nix-command flakes
5151
'';
5252

53+
etcReleaseName=writeTextDir"etc/coderniximage-release"''
54+
0.0.0
55+
'';
56+
5357
etcPamdSudoFile=writeText"pam-sudo"''
5458
# Allow root to bypass authentication (optional)
5559
auth sufficient pam_rootok.so
@@ -271,6 +275,7 @@ let
271275
etcNixConf
272276
etcSudoers
273277
etcPamdSudo
278+
etcReleaseName
274279
(fakeNss.override{
275280
# Allows programs to look up the build user's home directory
276281
# https://github.com/NixOS/nix/blob/ffe155abd36366a870482625543f9bf924a58281/src/libstore/build/local-derivation-goal.cc#L906-L910

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp