mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-21 23:13:09 +01:00
Rename project from flakelite to flakelight
This commit is contained in:
parent
f6c4424f6e
commit
b8d9538c58
@ -1,4 +1,4 @@
|
||||
# flakelite
|
||||
# flakelight
|
||||
|
||||
An opinionated Nix flake framework for making flakes simple.
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, lib, flakelite, ... }:
|
||||
{ config, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) isFunction mapAttrs mkIf mkMerge mkOption;
|
||||
inherit (lib.types) lazyAttrsOf nullOr raw;
|
||||
inherit (flakelite.types) optFunctionTo;
|
||||
inherit (flakelight.types) optFunctionTo;
|
||||
|
||||
isApp = x: (x ? type) && (x.type == "app") && (x ? program);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
@ -7,7 +7,7 @@ let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
{
|
||||
options.flakelite.builtinFormatters =
|
||||
options.flakelight.builtinFormatters =
|
||||
mkEnableOption "default formatters" // { default = true; };
|
||||
|
||||
config = {
|
||||
|
@ -1,8 +1,8 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, src, lib, inputs, outputs, flakelite, ... }:
|
||||
{ config, src, lib, inputs, outputs, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) isList mkOption mkOrder mapAttrs optionalAttrs;
|
||||
inherit (lib.types) listOf nullOr oneOf str;
|
||||
@ -25,7 +25,7 @@ in
|
||||
system = prev.stdenv.hostPlatform.system;
|
||||
in
|
||||
{
|
||||
inherit src inputs outputs flakelite system;
|
||||
inherit src inputs outputs flakelight system;
|
||||
inputs' = mapAttrs (_: mapAttrs (_: v: v.${system} or { })) inputs;
|
||||
outputs' = mapAttrs (_: v: v.${system} or { }) outputs;
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, src, lib, flakelite, ... }:
|
||||
{ config, src, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) isDerivation isFunction mkOption mkIf mapAttrs;
|
||||
inherit (lib.types) lazyAttrsOf nullOr raw;
|
||||
inherit (flakelite.types) optFunctionTo;
|
||||
inherit (flakelight.types) optFunctionTo;
|
||||
|
||||
mkCheck = pkgs: src: name: cmd:
|
||||
let
|
||||
|
@ -1,14 +1,14 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, inputs, lib, flakelite, ... }:
|
||||
{ config, inputs, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (builtins) all head isAttrs length;
|
||||
inherit (lib) foldAttrs getFiles getValues mapAttrs mergeAttrs mkOption
|
||||
mkOptionType showFiles showOption;
|
||||
inherit (lib.types) functionTo lazyAttrsOf listOf nonEmptyStr raw uniq;
|
||||
inherit (flakelite.types) optListOf overlay;
|
||||
inherit (flakelight.types) optListOf overlay;
|
||||
|
||||
outputs = mkOptionType {
|
||||
name = "outputs";
|
||||
|
@ -1,14 +1,14 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, lib, flakelite, ... }:
|
||||
{ config, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) any attrValues filterAttrs mapAttrs mkIf mkMerge mkOption
|
||||
optionalAttrs;
|
||||
inherit (lib.types) lazyAttrsOf functionTo lines listOf nullOr package str;
|
||||
inherit (flakelite) supportedSystem;
|
||||
inherit (flakelite.types) optFunctionTo packageDef;
|
||||
inherit (flakelight) supportedSystem;
|
||||
inherit (flakelight.types) optFunctionTo packageDef;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
@ -7,11 +7,11 @@ let
|
||||
inherit (lib) mkEnableOption mkIf optionalString pathExists;
|
||||
in
|
||||
{
|
||||
options.flakelite.editorconfig =
|
||||
options.flakelight.editorconfig =
|
||||
mkEnableOption "editorconfig check" // { default = true; };
|
||||
|
||||
config.checks = mkIf
|
||||
(config.flakelite.editorconfig && (pathExists (src + /.editorconfig)))
|
||||
(config.flakelight.editorconfig && (pathExists (src + /.editorconfig)))
|
||||
{
|
||||
# By default, high false-positive flags are disabled.
|
||||
editorconfig = { editorconfig-checker, ... }:
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, src, lib, flakelite, ... }:
|
||||
{ config, src, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) mkOption mkIf mapAttrsToList;
|
||||
inherit (lib.types) lazyAttrsOf nullOr str;
|
||||
inherit (flakelite.types) optFunctionTo;
|
||||
inherit (flakelight.types) optFunctionTo;
|
||||
in
|
||||
{
|
||||
options.formatters = mkOption {
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, lib, flakelite, ... }:
|
||||
{ config, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) mkOption mkIf mkMerge;
|
||||
inherit (lib.types) lazyAttrsOf nullOr;
|
||||
inherit (flakelite.types) module;
|
||||
inherit (flakelight.types) module;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, src, lib, flakelite, ... }@args:
|
||||
{ config, src, lib, flakelight, ... }@args:
|
||||
let
|
||||
inherit (lib) isFunction mkOption mkIf mkMerge optionalAttrs;
|
||||
inherit (flakelite) autoImport;
|
||||
inherit (flakelite.types) path;
|
||||
inherit (flakelight) autoImport;
|
||||
inherit (flakelight.types) path;
|
||||
in
|
||||
{
|
||||
options.nixDir = mkOption {
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, lib, flakelite, ... }:
|
||||
{ config, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) mkOption mkIf mkMerge;
|
||||
inherit (lib.types) lazyAttrsOf nullOr;
|
||||
inherit (flakelite.types) module;
|
||||
inherit (flakelight.types) module;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -1,12 +1,12 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, lib, flakelite, ... }:
|
||||
{ config, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (lib) mkOption mkIf;
|
||||
inherit (lib.types) lazyAttrsOf;
|
||||
inherit (flakelite.types) overlay;
|
||||
inherit (flakelight.types) overlay;
|
||||
in
|
||||
{
|
||||
options.overlays = mkOption {
|
||||
|
@ -1,15 +1,15 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
{ config, lib, flakelite, ... }:
|
||||
{ config, lib, flakelight, ... }:
|
||||
let
|
||||
inherit (builtins) attrNames functionArgs intersectAttrs parseDrvName;
|
||||
inherit (lib) composeManyExtensions filterAttrs fix genAttrs mapAttrs mapAttrs'
|
||||
mkIf mkMerge mkOption mkOrder nameValuePair optional optionalAttrs remove;
|
||||
inherit (lib.types) lazyAttrsOf nullOr;
|
||||
inherit (flakelite) supportedSystem;
|
||||
inherit (flakelite.types) packageDef;
|
||||
inherit (flakelight) supportedSystem;
|
||||
inherit (flakelight.types) packageDef;
|
||||
|
||||
getName = pkg: pkg.pname or (parseDrvName pkg.name).name;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
@ -18,12 +18,12 @@ let
|
||||
specialArgs.modulesPath = ./builtinModules;
|
||||
modules = builtinModules ++ [
|
||||
{ inputs.nixpkgs = mkDefault localInputs.nixpkgs; }
|
||||
{ _module.args = { inherit src flakelite; }; }
|
||||
{ _module.args = { inherit src flakelight; }; }
|
||||
root
|
||||
];
|
||||
}).config.outputs;
|
||||
|
||||
flakelite = {
|
||||
flakelight = {
|
||||
inherit mkFlake supportedSystem importDir autoImport;
|
||||
|
||||
types = {
|
||||
@ -92,6 +92,6 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
lib = flakelite;
|
||||
lib = flakelight;
|
||||
__functor = _: mkFlake;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
# flakelite -- Framework for making flakes simple
|
||||
# flakelight -- Framework for simplifying flake setup
|
||||
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
outputs = inputs:
|
||||
let
|
||||
flakelite = import ./. inputs;
|
||||
flakelight = import ./. inputs;
|
||||
in
|
||||
flakelite ./. { outputs = flakelite; };
|
||||
flakelight ./. { outputs = flakelight; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user