Merge pull request #427 from nix-community/cleanup

Cleanup
This commit is contained in:
DavHau 2022-12-16 07:54:37 +07:00 committed by GitHub
commit 7acc54602b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 39 additions and 40 deletions

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
in {
config = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,6 +1,5 @@
{config, ...}: let
lib = config.lib;
l = lib // builtins;
l = config.lib;
defaults = {
# TODO: define a priority in each builder and remove the defaults here.
rust = "build-rust-package";
@ -19,7 +18,7 @@ in {
builders = funcs.import_ collectedModules;
buildersBySubsystem =
lib.mapAttrs
l.mapAttrs
(
subsystem: builders:
builders

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
translatorsWithDiscoverFunc =
l.filter

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
in {
config.dlib.construct = {
discoveredProject = {

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.dlib.construct = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
idToLicenseKey =
l.mapAttrs'

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.dlib = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
expectedFields = [
"name"

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.dlib.simpleTranslate2 = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
# INTERNAL

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.dlib = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
b = builtins;
inherit (config) dream2nixConfig pkgs utils dlib lib;

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
inherit (config) pkgs externalSources;
in {
config = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -18,7 +18,7 @@
...
} @ args: let
b = builtins;
l = lib // builtins;
l = config.lib;
# resolve to individual fetcher calls
defaultFetched = (defaultFetcher args).fetchedSources;

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
dlib = config.dlib;
/*

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.functions.discoverers = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.functions.updaters = {

View File

@ -1,5 +1,5 @@
{framework, ...}: let
l = framework.lib // builtins;
{lib, ...}: let
l = lib // builtins;
t = l.types;
outputsOptions = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
updatersDir = ../../updaters;
updaterNames = l.attrNames (
l.filterAttrs

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options = {

View File

@ -1,6 +1,6 @@
{config, ...}: let
b = builtins;
l = config.lib // builtins;
l = config.lib;
replaceRootSources = {
dreamLock,

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.utils.dream-lock = {

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config) pkgs utils;
l = config.lib // builtins;
l = config.lib;
generatePackagesFromLocksTree = {
source ? throw "pass source",

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.utils = {

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.utils = {

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.utils = {

View File

@ -1,6 +1,6 @@
{config, ...}: let
b = builtins;
l = config.lib // builtins;
l = config.lib;
overrideWarning = fields: args:
l.filterAttrs (

View File

@ -1,5 +1,5 @@
{config, ...}: let
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.utils = {

View File

@ -2,7 +2,7 @@
# for now this will have to suffice
{config, ...}: let
b = builtins;
l = config.lib // builtins;
l = config.lib;
inherit
(config.pkgs)

View File

@ -1,6 +1,6 @@
{config, ...}: let
inherit (config.dlib) mkFunction;
l = config.lib // builtins;
l = config.lib;
t = l.types;
in {
options.utils = {