blob: 9a6350b5d05fb5141092d3d2c475342b5ca0517f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
# vim: ai:ts=8:sw=8:noet
set -EeufCo pipefail
export SHELLOPTS # propagate set to children by default
IFS=$'\t\n'
# check required commands are in place
command -v docker >/dev/null 2>&1 || {
echo 'please install docker-client'
exit 1
}
docker run --rm \
-v "$(pwd)":/site \
-w /site \
nixos/nix:2.21.4 \
bash -c '\
nix build --extra-experimental-features "nix-command flakes" && \
cp -R $(nix-store -qR result/) public
chmod -R 777 public
'
|