mirror of
https://github.com/nix-community/flakelight.git
synced 2025-06-21 10:07:51 +02:00
Make flakelite lib attrs available in flakelite pkgs attr
This commit is contained in:
parent
e91836b9d3
commit
7e73ee23d6
24
default.nix
24
default.nix
@ -13,15 +13,17 @@ let
|
|||||||
|
|
||||||
baseModule = src: inputs: root: {
|
baseModule = src: inputs: root: {
|
||||||
withOverlay = final: prev: {
|
withOverlay = final: prev: {
|
||||||
flakelite.meta = {
|
flakelite = exports // {
|
||||||
platforms = root.systems;
|
meta = {
|
||||||
} // optionalAttrs (root ? description) {
|
platforms = root.systems;
|
||||||
inherit (root) description;
|
} // optionalAttrs (root ? description) {
|
||||||
} // optionalAttrs (root ? license) {
|
inherit (root) description;
|
||||||
license =
|
} // optionalAttrs (root ? license) {
|
||||||
if isList root.license
|
license =
|
||||||
then attrVals root.license final.lib.licenses
|
if isList root.license
|
||||||
else final.lib.licenses.${root.license};
|
then attrVals root.license final.lib.licenses
|
||||||
|
else final.lib.licenses.${root.license};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
checks = { pkgs, lib, ... }:
|
checks = { pkgs, lib, ... }:
|
||||||
@ -266,5 +268,7 @@ let
|
|||||||
"i686-linux"
|
"i686-linux"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports = { inherit mkFlake loadNixDir systems; };
|
||||||
in
|
in
|
||||||
{ inherit mkFlake loadNixDir systems; }
|
exports
|
||||||
|
Loading…
x
Reference in New Issue
Block a user