esv/.builds/nixos.yml

34 lines
741 B
YAML

---
image: nixos/unstable
packages:
- nixos.dmd
- nixos.curl
- nixos.gnumake
- nixos.ldc
environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
sources:
- "https://git.sr.ht/~jeremy/esv"
tasks:
- build-dmd: |
cd esv
./configure -c dmd
make all clean
- build-ldc: |
cd esv
./configure -c ldc2
make
- build-ldc-1_30_0: |
nix build -o ldc-1.30.0 --accept-flake-config github:PetarKirov/dlang.nix#ldc-1_30_0
cd esv
./configure -c $(readlink ../ldc-1.30.0)/bin/ldc2
make
- install: |
nix profile install ./esv
- test: |
cd esv
./configure -t
make clean all
./esv
# very basic test :)
esv Matthew 5-7 >/dev/null