blob: f889c1536a52981c174bbbd914f01e11bc5da3c8 (
plain)
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
|
{
inputs = {
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system:
let
pname = "grump";
version = "0.0.0";
pkgs = nixpkgs.legacyPackages."${system}";
buildInputs = with pkgs.ocamlPackages; [
utop # required for dune utop
];
in
with pkgs;
rec {
defaultPackage = ocamlPackages.buildDunePackage rec {
inherit pname version buildInputs;
useDune2 = true;
src = ./.;
};
devShell = mkShell {
buildInputs = with ocamlPackages; [
ocaml
pkgs.dune_2
utop
pkgs.nixUnstable
fswatch
];
};
});
}
|