2019-08-28 01:41:11 +00:00
|
|
|
language: nix
|
2019-06-17 17:21:24 +00:00
|
|
|
|
2019-08-28 02:07:31 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/nix.store
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- mkdir -p $HOME/nix.store
|
|
|
|
- nix copy --to file://$HOME/nix.store -f default.nix buildInputs
|
|
|
|
|
2019-06-17 17:21:24 +00:00
|
|
|
before_install:
|
2019-08-28 02:07:31 +00:00
|
|
|
- sudo mkdir -p /etc/nix
|
|
|
|
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store" | sudo tee -a /etc/nix/nix.conf > /dev/null
|
|
|
|
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
|
|
|
|
|
|
|
|
before_script:
|
2019-08-28 01:41:11 +00:00
|
|
|
# Make sure that version is up-to-date
|
|
|
|
- sed -i "s/version = .*/version = \"$(git describe --abbrev=0 --tags | sed 's/v//')\";/" default.nix
|
2019-06-17 17:21:24 +00:00
|
|
|
|
|
|
|
script:
|
2019-08-28 02:07:31 +00:00
|
|
|
- nix-build --option sandbox true
|