-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
117 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: | ||
- 'coqorg/coq:dev' | ||
- 'coqorg/coq:8.15' | ||
- 'coqorg/coq:8.14' | ||
- 'coqorg/coq:8.13' | ||
- 'coqorg/coq:8.12' | ||
- 'coqorg/coq:8.11' | ||
- 'coqorg/coq:8.10' | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: coq-community/docker-coq-action@v1 | ||
with: | ||
opam_file: 'coq-haskell.opam' | ||
custom_image: ${{ matrix.image }} | ||
|
||
# See also: | ||
# https://github.com/coq-community/docker-coq-action#readme | ||
# https://github.com/erikmd/docker-coq-github-action-demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
version: "dev" | ||
|
||
homepage: "https://github.com/jwiegley/coq-haskell" | ||
dev-repo: "git+https://github.com/jwiegley/coq-haskell.git" | ||
bug-reports: "https://github.com/jwiegley/coq-haskell/issues" | ||
license: "BSD-3-Clause" | ||
|
||
synopsis: "A library to provide Haskell-familiar constructions in Coq" | ||
description: """ | ||
An axiom-free formalization of category theory in Coq for personal study and | ||
practical work. | ||
""" | ||
|
||
build: [make "JOBS=%{jobs}%" ] | ||
install: [make "install"] | ||
depends: [ | ||
"coq" {(>= "8.10" & < "8.16~") | (= "dev")} | ||
] | ||
|
||
tags: [ | ||
] | ||
authors: [ | ||
"John Wiegley" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,45 @@ | ||
{ packages ? "coqPackages_8_10" | ||
|
||
, rev ? "8da81465c19fca393a3b17004c743e4d82a98e4f" | ||
, sha256 ? "1f3s27nrssfk413pszjhbs70wpap43bbjx2pf4zq5x2c1kd72l6y" | ||
|
||
, pkgs ? import (builtins.fetchTarball { | ||
args@{ | ||
rev ? "9222ae36b208d1c6b55d88e10aa68f969b5b5244" | ||
, sha256 ? "0dvl990alr4bb64w9b32dhzacvchpsspj8p3zqcgk7q5akvqh1mw" | ||
, pkgs ? import (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"; | ||
inherit sha256; }) { | ||
config.allowUnfree = true; | ||
config.allowBroken = false; | ||
overlays = [ | ||
(self: super: | ||
let | ||
nixpkgs = { rev, sha256 }: | ||
import (super.fetchFromGitHub { | ||
owner = "NixOS"; | ||
repo = "nixpkgs"; | ||
inherit rev sha256; | ||
}) { config.allowUnfree = true; }; | ||
|
||
known-good-20191113_070954 = nixpkgs { | ||
rev = "620124b130c9e678b9fe9dd4a98750968b1f749a"; | ||
sha256 = "0xgy2rn2pxii3axa0d9y4s25lsq7d9ykq30gvg2nzgmdkmy375rr"; | ||
}; | ||
in | ||
{ | ||
inherit (known-good-20191113_070954) shared-mime-info; | ||
}) | ||
]; | ||
} | ||
}: | ||
|
||
with pkgs.${packages}; | ||
let coq-haskell = coqPackages: | ||
with pkgs.${coqPackages}; pkgs.stdenv.mkDerivation rec { | ||
name = "coq${coq.coq-version}-coq-haskell-${version}"; | ||
version = "1.0"; | ||
|
||
pkgs.stdenv.mkDerivation rec { | ||
name = "coq${coq.coq-version}-haskell-${version}"; | ||
version = "1.0"; | ||
src = if pkgs ? coqFilterSource | ||
then pkgs.coqFilterSource [] ./. | ||
else ./.; | ||
|
||
src = | ||
if pkgs ? coqFilterSource | ||
then pkgs.coqFilterSource [] ./. | ||
else ./.; | ||
|
||
buildInputs = [ coq coq.ocaml coq.camlp5 coq.findlib equations ]; | ||
enableParallelBuilding = true; | ||
buildInputs = [ | ||
coq coq.ocaml coq.camlp5 coq.findlib | ||
]; | ||
enableParallelBuilding = true; | ||
|
||
buildPhase = "make -j$NIX_BUILD_CORES"; | ||
preBuild = "coq_makefile -f _CoqProject -o Makefile"; | ||
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; | ||
buildFlags = [ | ||
"JOBS=$(NIX_BUILD_CORES)" | ||
]; | ||
|
||
env = pkgs.buildEnv { name = name; paths = buildInputs; }; | ||
passthru = { | ||
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" ]; | ||
}; | ||
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; | ||
|
||
env = pkgs.buildEnv { inherit name; paths = buildInputs; }; | ||
passthru = { | ||
compatibleCoqVersions = v: builtins.elem v [ "8.10" "8.11" "8.12" "8.13" "8.14" "8.15" ]; | ||
}; | ||
}; | ||
|
||
in { | ||
coq-haskell_8_10 = coq-haskell "coqPackages_8_10"; | ||
coq-haskell_8_11 = coq-haskell "coqPackages_8_11"; | ||
coq-haskell_8_12 = coq-haskell "coqPackages_8_12"; | ||
coq-haskell_8_13 = coq-haskell "coqPackages_8_13"; | ||
coq-haskell_8_14 = coq-haskell "coqPackages_8_14"; | ||
coq-haskell_8_15 = coq-haskell "coqPackages_8_15"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ version ? "coq-haskell_8_15" }: | ||
(import ./default.nix {}).${version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters