https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
7 lines
180 B
Bash
Executable file
7 lines
180 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
nix-build --no-out-link update-manual.nix | xargs -n 1 -P $(nproc) bash -c
|