mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-22 07:23:11 +01:00
Set default value for flakelight input
This commit is contained in:
parent
0760edb005
commit
a7e2fe5468
@ -2,8 +2,9 @@
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
nixpkgs:
|
||||
inputs:
|
||||
let
|
||||
inherit (inputs) nixpkgs;
|
||||
inherit (builtins) isAttrs isPath readDir;
|
||||
inherit (nixpkgs.lib) attrNames composeManyExtensions
|
||||
filter findFirst fix genAttrs getValues hasSuffix isFunction isList
|
||||
@ -20,6 +21,7 @@ let
|
||||
specialArgs.modulesPath = ./builtinModules;
|
||||
modules = builtinModules ++ self.extraModules ++ [
|
||||
{ inputs.nixpkgs = mkDefault nixpkgs; }
|
||||
{ inputs.flakelight = mkDefault inputs.self; }
|
||||
{ _module.args = { inherit src flakelight; }; }
|
||||
root
|
||||
];
|
||||
|
@ -6,8 +6,8 @@
|
||||
description =
|
||||
"A modular Nix flake framework for simplifying flake definitions";
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
outputs = { nixpkgs, ... }@inputs:
|
||||
let lib = import ./. nixpkgs; in
|
||||
outputs = inputs:
|
||||
let lib = import ./. inputs; in
|
||||
lib.mkFlake ./. {
|
||||
inherit lib;
|
||||
functor = _: lib.mkFlake;
|
||||
|
Loading…
Reference in New Issue
Block a user