-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
26 lines (25 loc) · 754 Bytes
/
Copy pathflake.nix
File metadata and controls
26 lines (25 loc) · 754 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
26
{
inputs = {
opam-nix.url = "github:tweag/opam-nix";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.follows = "opam-nix/nixpkgs";
};
outputs = { self, flake-utils, opam-nix, nixpkgs }@inputs:
let package = "safemoney";
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
on = opam-nix.lib.${system};
devPackagesQuery = {
ocaml-lsp-server = "*";
};
query = devPackagesQuery // {
ocaml-base-compiler = "4.14.0";
};
scope =
on.buildOpamProject { } package ./. query;
in {
legacyPackages = scope;
packages.default = self.legacyPackages.${system}.${package};
});
}