-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
54 lines (45 loc) · 1.18 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "VsEc, A language server for EasyCrypt";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
rec {
packages.default =
# Notice the reference to nixpkgs here.
with import nixpkgs { inherit system; };
ocamlPackages.buildDunePackage {
duneVersion = "3";
pname = "ec-language-server";
version = "1.0.0-beta1";
src = ./src;
buildInputs = [
dune_3
] ++ (with ocamlPackages; [
camlp-streams
ocaml
yojson
findlib
ppx_inline_test
ppx_assert
ppx_sexp_conv
ppx_deriving
sexplib
ppx_yojson_conv
uri
]) ++ (easycrypt.buildInputs)
++ (easycrypt.propagatedBuildInputs)
++ (easycrypt.nativeBuildInputs);
};
devShells.default =
with import nixpkgs { inherit system; };
mkShell {
buildInputs =
self.packages.${system}.default.buildInputs
++ (with ocamlPackages; [
ocaml-lsp
]);
};
});
}