Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit 6e1b83a

Browse files
authored
Fix Nix invocations in the README and Dockerfiles (#260)
1 parent db8855f commit 6e1b83a

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ Then quick start a build with:
3939
```bash
4040
cd examples/activation
4141
nix run .#build-and-copy \
42-
--override-input kernel-builder github:huggingface/kernel-builder \
43-
--max-jobs 8 \
44-
-j 8 \
42+
--max-jobs 2 \
43+
--cores 8 \
4544
-L
4645
```
4746

47+
Where `--max-jobs` specifies the number of build variant that should be built concurrently and `--cores` the number of CPU cores that should be used per build variant.
48+
4849
The compiled kernel will then be available in the local `build/` directory.
4950
We also provide Docker containers for CI builds. For a quick build:
5051

dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function build_extension {
115115
nix build . \
116116
$override \
117117
--max-jobs $MAX_JOBS \
118-
-j $CORES \
118+
--cores $CORES \
119119
-L
120120

121121
echo "Build completed. Copying results to ${output_dir}"

dockerfiles/Dockerfile.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function build_extension {
137137
nix build \
138138
.\#bundle \
139139
--max-jobs $MAX_JOBS \
140-
-j $CORES \
140+
--cores $CORES \
141141
-L 2>&1 | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0; fflush(); }'
142142

143143
echo "Build completed. Copying results to /home/nixuser/kernelcode/build/"

0 commit comments

Comments
 (0)