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