-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
68 lines (57 loc) · 1.57 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
description = "the flake for this project";
inputs = {
# Convenience functions for writing flakes
flake-utils.url = "github:numtide/flake-utils";
# nixpkgs
nixpkgs.url = "github:NixOs/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
flake-utils,
nixpkgs
}:
flake-utils .lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
ocamlPackages = pkgs.ocamlPackages;
lib = nixpkgs.lib;
ocaml = ocamlPackages.ocaml;
ocaml-syntax-shims = ocamlPackages.ocaml-syntax-shims;
ppx_let = pkgs.ppx_let;
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
ocaml
dune_3
ocamlformat
]
++ (with ocamlPackages; [
merlin
findlib
utop
]);
};
#packages.default = ocamlPackages.buildDunePackage rec {
# model for importing packages
/*pname = "angstrom";
version = "0.15.0";
duneVersion = "3";
minimalOCamlVersion = "4.04";
src = pkgs.fetchFromGitHub {
owner = "inhabitedtype";
repo = pname;
rev = version;
sha256 = "1hmrkdcdlkwy7rxhngf3cv3sa61cznnd9p5lmqhx20664gx2ibrh";
};
buildInputs = [ ocaml-syntax-shims ];
doCheck = lib.versionAtLeast ocaml.version "4.05";
meta = {
homepage = "https://github.com/inhabitedtype/angstrom";
description = "OCaml parser combinators built for speed and memory efficiency";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sternenseemann ];
};*/
#};
});
}