Skip to content

Commit a87ad8b

Browse files
authored
Merge pull request #110 from Kloenk/master
Add nix build file
2 parents aa1b9bc + b494a18 commit a87ad8b

File tree

4 files changed

+1302
-9
lines changed

4 files changed

+1302
-9
lines changed

Diff for: .gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
/parts
77
/prime
88
.gitignore.swp
9-
Cargo.lock
9+
10+
11+
# needed for nix
12+
# Cargo.lock
13+
14+
# nix result from nix-build
15+
result

Diff for: .travis.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@ os:
77
- linux
88
- windows
99
- osx
10-
sudo: false
1110
script:
12-
- cargo build --verbose
1311
- cargo test --verbose
14-
notifications:
15-
email:
16-
on_success: never
17-
branches:
18-
only:
19-
- master
12+
- cargo build --verbose
13+
jobs:
14+
include:
15+
- language: nix
16+
cache:
17+
directories:
18+
- $HOME/nix.store
19+
script:
20+
- nix-build
21+
before_install:
22+
- sudo mkdir -p /etc/nix
23+
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store" | sudo tee -a /etc/nix/nix.conf > /dev/null
24+
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
25+
before_cache:
26+
- mkdir -p $HOME/nix.store
27+
- nix copy --to file://$HOME/nix.store -f default.nix buildInputs

0 commit comments

Comments
 (0)