-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
25 lines (24 loc) · 809 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
{
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:
# Don't forget to put the package name instead of `throw':
let package = "opam-nix-dune-build-info";
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
on = opam-nix.lib.${system};
scope =
on.buildOpamProject { } package ./. { ocaml-base-compiler = "*"; };
overlay = final: prev:
{
# Your overrides go here
};
in {
legacyPackages = scope.overrideScope' overlay;
packages.default = self.legacyPackages.${system}.${package};
});
}