summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 4c483e661793bf809cfd4aed52571ef76bf6243c (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
{
  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
        ];

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