Skip to content

Commit

Permalink
feat: add support for Coq
Browse files Browse the repository at this point in the history
  • Loading branch information
definfo committed Dec 22, 2024
1 parent 959eff5 commit e213915
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Once your preferred template has been initialized, you can use the provided shel
| [C]/[C++] | [`c-cpp`](./c-cpp/) |
| [Clojure] | [`clojure`](./clojure/) |
| [C#][csharp] | [`csharp`](./csharp/) |
| [Coq] | [`coq`](./coq/) |
| [Cue] | [`cue`](./cue/) |
| [Dhall] | [`dhall`](./dhall/) |
| [Elixir] | [`elixir`](./elixir/) |
Expand Down Expand Up @@ -105,6 +106,10 @@ The sections below list what each template includes. In all cases, you're free t
- [Mono] 6.12.0.182
- [msbuild] 16.10.1

### [`coq`](./cue/)

- [Coq] 8.15.2

### [`cue`](./cue/)

- [Cue] 0.5.0
Expand Down Expand Up @@ -342,6 +347,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
[composer]: https://getcomposer.org
[conan]: https://conan.io
[conftest]: https://conftest.dev
[Coq]: https://coq.inria.fr
[cppcheck]: http://cppcheck.sourceforge.net
[csharp]: https://dotnet.microsoft.com/en-us/languages/csharp
[cue]: https://cuelang.org
Expand Down
1 change: 1 addition & 0 deletions coq/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
25 changes: 25 additions & 0 deletions coq/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions coq/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
description = "A Nix-flake-based Coq development environment using opam";

inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";

outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default =
let
coqPackages = pkgs.coqPackages_8_15;
in
pkgs.mkShell {
packages = with coqPackages; [ coq ];
};
});
};
}
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
description = "Clojure development environment";
};

coq = {
path = ./coq;
description = "Coq development environment";
};

csharp = {
path = ./csharp;
description = "C# development environment";
Expand Down

0 comments on commit e213915

Please sign in to comment.