Skip to content

Commit 9d788bb

Browse files
authored
Merge pull request #128 from math-comp/nix-elpi-1.8
Compile with coq 8.12 & coq elpi 1.8
2 parents 6dad7c4 + 7f1f829 commit 9d788bb

File tree

2 files changed

+31
-18
lines changed

2 files changed

+31
-18
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ on:
1111
branches: [ master ]
1212

1313
jobs:
14-
# nix:
15-
# runs-on: ubuntu-latest
16-
#
17-
# steps:
18-
# - uses: actions/checkout@v2
19-
# - uses: cachix/install-nix-action@v10
20-
# - run: nix-build
14+
nix:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- uses: cachix/install-nix-action@v12
22+
- uses: cachix/cachix-action@v8
23+
with:
24+
name: coq
25+
- run: nix-build
2126

2227
opam:
2328
runs-on: ubuntu-latest

default.nix

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
{withEmacs ? false,
22
nixpkgs ? (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/4aa5466cbc741097218a1c494a7b832a17d1967d.tar.gz),
3-
coq-version ? "8.11",
3+
coq-version ? "8.12",
44
print-env ? false
55
}:
66
with import nixpkgs {
7-
# overlays = [ (super: self: {
8-
# coqPackages = { "8.11" = super.coqPackages_8_11; }."${coq-version}".overrideScope' (self: super: {
9-
# # Coq package override example:
10-
# coq-elpi = super.coq-elpi.overrideAttrs (old: {
11-
# name = "coq8.11-elpi-1.5.0";
12-
# src = fetchTarball https://github.com/LPCIC/coq-elpi/archive/v1.5.0.tar.gz;
13-
# });
14-
# });
15-
# coq = self.coqPackages.coq;
16-
# })];
7+
overlays = [ (super: self: {
8+
coqPackages = { "8.12" = super.coqPackages_8_12; }."${coq-version}".overrideScope' (self: super: {
9+
coq = super.coq.override {
10+
ocamlPackages = super.coq.ocamlPackages.overrideScope' (self: super: {
11+
elpi = super.elpi.overrideAttrs (old: {
12+
name = "elpi-1.12.0";
13+
src = fetchTarball https://github.com/LPCIC/elpi/archive/v1.12.0.tar.gz;
14+
});
15+
});
16+
};
17+
# Coq package override example:
18+
coq-elpi = super.coq-elpi.overrideAttrs (old: {
19+
name = "coq8.12-elpi-1.8.0";
20+
src = fetchTarball https://github.com/LPCIC/coq-elpi/archive/v1.8.0.tar.gz;
21+
});
22+
});
23+
coq = self.coqPackages.coq;
24+
})];
1725
};
1826
let pgEmacs = emacsWithPackages (epkgs: with epkgs.melpaStablePackages; [proof-general]); in
1927
coqPackages.hierarchy-builder.overrideAttrs (old: {

0 commit comments

Comments
 (0)