-
Notifications
You must be signed in to change notification settings - Fork 9
/
flake.nix
37 lines (31 loc) · 987 Bytes
/
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
{
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
#ocamlformat 0.22.4 is a bit old, so is only in older versions of nixpkgs
nixpkgs2305.url = "nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nixpkgs2305, flake-utils }@attrs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs2305 = nixpkgs2305.legacyPackages.${system};
in
{
# for use by nix fmt
formatter = pkgs.nixpkgs-fmt;
devShells.default =
pkgs.mkShell {
buildInputs =
(if pkgs.stdenv.isDarwin then
(with pkgs.darwin.apple_sdk.frameworks; [ CoreServices Foundation ])
else
[ pkgs.inotify-tools ]) ++ [
pkgs.opam
pkgs2305.ocamlformat_0_20_1
#pkgs.pkg-config
]
;
};
});
}