@@ -2,39 +2,37 @@ version: 2
5− - image: haskell:8.2.2
5+ - image: nixorg/nix:circleci
8 - restore_cache:
8 - restore_cache:
10− - v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
10+ - v1-nix-{{ checksum "package.yaml" }}
11− - v1-stack-{{ checksum "package.yaml" }}-
11+ - v1-nix-
13 name: Restoring stack cache
12 name: Restoring stack cache
15 name: Compile
14 name: Compile
16− command: make build
15+ command: nix-shell --run 'make build'
17 - persist_to_workspace:
16 - persist_to_workspace:
21 - save_cache:
20 - save_cache:
22− key: v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
21+ key: v1-nix-{{ checksum "package.yaml" }}
23− name: Caching stack
22+ name: Caching nix
25− - .stack-work
24+ - /nix
30− - image: haskell:8.2.2
28+ - image: nixorg/nix:circleci
32 - checkout
30 - checkout
33 - attach_workspace:
31 - attach_workspace:
36 name: Doc test
34 name: Doc test
37− command: make test-doc-test
35+ command: nix-shell --run 'make test-doc-test'
39 for-github:
37 for-github:
@@ -46,18 +44,17 @@ jobs:
49− - image: haskell:8.2.2
47+ - image: nixorg/nix:circleci
51 - checkout
49 - checkout
52 - restore_cache:
50 - restore_cache:
54− - v1-stack-{{ checksum "package.yaml" }}-{{ checksum "stack.yaml" }}
52+ - v1-nix-{{ checksum "package.yaml" }}
55− - v1-stack-{{ checksum "package.yaml" }}-
53+ - v1-nix-
57 name: Restoring stack cache
54 name: Restoring stack cache
59 name: Build sdist
56 name: Build sdist
60− command: make sdist
57+ command: nix-shell --run 'make sdist'
63 version: 2
60 version: 2