-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
25 lines (23 loc) · 751 Bytes
/
flake.nix
File metadata and controls
25 lines (23 loc) · 751 Bytes
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
{
description = "Lambda Calculus Flake";
inputs = {
nixpkgs.url = "github:anmonteiro/nix-overlays";
nix-filter.url = "github:numtide/nix-filter";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, nix-filter, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = (nixpkgs.makePkgs {
inherit system;
}).extend (self: super: {
ocamlPackages = super.ocaml-ng.ocamlPackages_5_2;
}); in
let lambda-calculus = pkgs.callPackage ./nix {
inherit nix-filter;
doCheck = true;
}; in
rec {
packages = { inherit lambda-calculus; };
devShell = import ./nix/shell.nix { inherit pkgs lambda-calculus; };
});
}