mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 00:32:28 +00:00
20 lines
240 B
Bash
Executable File
20 lines
240 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
set -x
|
|
|
|
source common.sh
|
|
|
|
# Avoid store dir being inside sandbox build-dir
|
|
unset NIX_STORE_DIR
|
|
unset NIX_STATE_DIR
|
|
|
|
storeDirs
|
|
|
|
initLowerStore
|
|
|
|
mountOverlayfs
|
|
|
|
nix-store --store "$storeB" --optimise
|