fix: flake overlay

This commit is contained in:
dusk 2021-05-18 23:10:21 +03:00
parent 1a3b70b4c3
commit 29f3122324
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -5,7 +5,6 @@
};
outputs = { self, flakeUtils, nixpkgs }:
flakeUtils.lib.eachDefaultSystem (system:
let
utils = import ./utils.nix;
@ -22,21 +21,20 @@
};
};
pkgsLib = (final: prev: {
htmlNix = import ./pkgs-lib.nix { pkgs = prev; utils = utils // { inherit (lib) tags css; }; };
});
pkgs = import nixpkgs { inherit system; overlays = [ pkgsLib ]; };
overlay = final: prev: {
htmlNix = (import ./pkgs-lib.nix { pkgs = prev; utils = utils // { inherit (lib) tags css; }; }) // lib;
};
in
{ inherit overlay; } //
(flakeUtils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; overlays = [ overlay ]; };
in
{
lib = lib // {
pkgsLib = import ./pkgs-lib.nix { inherit pkgs; utils = utils // { inherit (lib) tags css; }; };
};
overlays = {
inherit pkgsLib;
};
apps = with flakeUtils.lib; {
site = mkApp {
drv = import ./examples/site.nix { inherit lib pkgs; };
@ -51,5 +49,5 @@
examples = {
tags = import ./examples/tags.nix lib.tags;
};
});
}));
}