mirror of
https://github.com/nix-community/flakelight.git
synced 2025-03-12 04:58:11 +01:00
Make flakelite lib attrs available in flakelite pkgs attr
This commit is contained in:
parent
e91836b9d3
commit
7e73ee23d6
@ -13,7 +13,8 @@ let
|
|||||||
|
|
||||||
baseModule = src: inputs: root: {
|
baseModule = src: inputs: root: {
|
||||||
withOverlay = final: prev: {
|
withOverlay = final: prev: {
|
||||||
flakelite.meta = {
|
flakelite = exports // {
|
||||||
|
meta = {
|
||||||
platforms = root.systems;
|
platforms = root.systems;
|
||||||
} // optionalAttrs (root ? description) {
|
} // optionalAttrs (root ? description) {
|
||||||
inherit (root) description;
|
inherit (root) description;
|
||||||
@ -24,6 +25,7 @@ let
|
|||||||
else final.lib.licenses.${root.license};
|
else final.lib.licenses.${root.license};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
checks = { pkgs, lib, ... }:
|
checks = { pkgs, lib, ... }:
|
||||||
(optionalAttrs (pathExists (src + /.editorconfig)) {
|
(optionalAttrs (pathExists (src + /.editorconfig)) {
|
||||||
editorconfig = "${lib.getExe pkgs.editorconfig-checker}"
|
editorconfig = "${lib.getExe pkgs.editorconfig-checker}"
|
||||||
@ -266,5 +268,7 @@ let
|
|||||||
"i686-linux"
|
"i686-linux"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports = { inherit mkFlake loadNixDir systems; };
|
||||||
in
|
in
|
||||||
{ inherit mkFlake loadNixDir systems; }
|
exports
|
||||||
|
Loading…
Reference in New Issue
Block a user