33 lines
617 B
Nix
33 lines
617 B
Nix
{
|
|
description = "OCaml nix-flake devshell.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
{
|
|
devShells."${system}".default =
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
packages =
|
|
with pkgs;
|
|
with ocamlPackages;
|
|
[
|
|
findlib
|
|
ocaml
|
|
ocaml-lsp
|
|
ocamlformat
|
|
dune_3
|
|
];
|
|
};
|
|
};
|
|
}
|