21 lines
548 B
Nix
21 lines
548 B
Nix
{
|
|
description = "My Lean package";
|
|
|
|
inputs.lean.url = "github:leanprover/lean4";
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, lean, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
leanPkgs = lean.packages.${system};
|
|
pkg = leanPkgs.buildLeanPackage {
|
|
name = "MyPackage"; # must match the name of the top-level .lean file
|
|
src = ./.;
|
|
};
|
|
in {
|
|
packages = pkg // {
|
|
inherit (leanPkgs) lean;
|
|
};
|
|
|
|
defaultPackage = pkg.modRoot;
|
|
});
|
|
}
|