summaryrefslogtreecommitdiff
path: root/flake.nix
blob: e49248a739512fcf61f0dabefcf1a45ac554d780 (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
{
  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
          pkgs.nixUnstable
          pkgs.fswatch
        ];

      in
      with pkgs;
      rec {
        defaultPackage = ocamlPackages.buildDunePackage rec {
          inherit pname version buildInputs;
          useDune2 = true;
          src = ./.;
        };
      });
}