1
1
forked from extern/flakelight
flakelight/flake.nix
Archit Gupta 62083df539 Add functor option for flake's __functor attribute
This allows for conveniently making flakes callable.

Setting this is expected to be uncommon in general, but having the
option is useful as flakelight module flakes can use this to reduce the
boilerplate in using them.
2023-09-13 21:02:39 -07:00

18 lines
547 B
Nix

# flakelight -- Framework for simplifying flake setup
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
# SPDX-License-Identifier: MIT
{
description =
"A modular Nix flake framework for simplifying flake definitions";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let lib = import ./. nixpkgs; in
lib.mkFlake ./. {
outputs = { inherit lib; };
functor = _: lib.mkFlake;
templates = import ./templates;
checks.statix = pkgs: "${pkgs.statix}/bin/statix check";
};
}