31 lines
619 B
YAML
31 lines
619 B
YAML
---
|
|
image: archlinux
|
|
packages:
|
|
- bmake
|
|
- dmd
|
|
- curl
|
|
- ldc
|
|
- nix
|
|
sources:
|
|
- "https://git.sr.ht/~jeremy/esv"
|
|
tasks:
|
|
- prepare: |
|
|
printf 'experimental-features = nix-command flakes\n' \
|
|
| sudo tee -a /etc/nix/nix.conf
|
|
sudo systemctl start nix-daemon
|
|
sudo usermod -aG nix-users build
|
|
- build-dmd: |
|
|
cd esv
|
|
./configure -c dmd
|
|
bmake all clean
|
|
- build-ldc: |
|
|
cd esv
|
|
./configure -c ldc2
|
|
bmake
|
|
- install: |
|
|
sudo bmake -C esv install
|
|
- test: |
|
|
# very basic test :)
|
|
esv Matthew 5-7 >/dev/null
|
|
- flake: |
|
|
nix build ./esv
|