Skip to content

Commit

Permalink
feat: Update coq-lsp. (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylechui authored Jun 17, 2024
1 parent 2d335e9 commit aaebf3f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 12 deletions.
19 changes: 18 additions & 1 deletion flake.lock

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

36 changes: 25 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
{
description = "Local development environment for 2ControlVerification";
inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; };
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};

outputs = { self, nixpkgs }:
outputs =
{
self,
nixpkgs,
nixpkgs-unstable,
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
coq-quantumlib-version = "v1.4.0";
in let
in
let
coq-quantumlib = pkgs.coqPackages.mkCoqDerivation {
pname = "quantumlib";
owner = "inQWIRE";
Expand All @@ -20,15 +30,19 @@
};
useDune = true;
};
in {
in
{
devShell.${system} = pkgs.mkShell {
packages = [
pkgs.coq
pkgs.coq.ocamlPackages.ocaml
pkgs.coq.ocamlPackages.dune_3
coq-quantumlib
] ++ pkgs.lib.optional (builtins.getEnv "CI" != "true")
pkgs.coqPackages.coq-lsp; # Don't build the LSP in GitHub Action
packages =
[
pkgs.coq
pkgs.coq.ocamlPackages.ocaml
pkgs.coq.ocamlPackages.dune_3
coq-quantumlib
]
++ pkgs.lib.optional (builtins.getEnv "CI" != "true") (
pkgs.coqPackages.coq-lsp.override { coq = pkgs.coq_8_18; }
); # Don't build the LSP in GitHub Action
};
};
}

0 comments on commit aaebf3f

Please sign in to comment.