-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
45 lines (41 loc) · 1.16 KB
/
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
38
39
40
41
42
43
44
45
{
description = "michelson to wasm compiler";
nixConfig = {
extra-substituters = "https://anmonteiro.nix-cache.workers.dev";
extra-trusted-public-keys = "ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=";
};
inputs = {
nixpkgs.url = "github:nix-ocaml/nix-overlays";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
tezos.url = "github:marigold-dev/tezos-nix";
tezos.inputs = {
nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
nix-filter,
tezos
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs {
inherit system;
}).appendOverlays [
tezos.overlays.default
(final: prev: {
ocamlPackages = prev.ocaml-ng.ocamlPackages_4_14;
})
];
in
{
packages = {
default = pkgs.ocamlPackages.callPackage ./nix/tuna.nix { inherit nix-filter; };
vm_library = pkgs.callPackage ./nix/vm_library.nix { inherit nix-filter; };
tuna = self.packages.${system}.default;
};
});
}