debug the overlay

This commit is contained in:
colin 2022-10-11 02:58:24 -07:00
parent 727f191bcd
commit 994607578a
1 changed files with 18 additions and 13 deletions

View File

@ -6,18 +6,23 @@
};
outputs = { self, nixpkgs, flake-utils }:
with flake-utils.lib; eachSystem allSystems (system:
let
pkgs = import nixpkgs { inherit system; };
in
rec {
packages = import ./default.nix { inherit pkgs; };
defaultPackage = packages.uninsane-dot-org;
devShells.default = with pkgs; mkShell {
buildInputs = with packages.uninsane-dot-org; (buildInputs ++ nativeBuildInputs);
{
overlay = final: prev: {
uninsane = import ./default.nix { pkgs = prev; };
};
}) // {
overlay = final: prev: import ./default.nix { pkgs = prev; };
};
} //
(
with flake-utils.lib; eachSystem allSystems (system:
let
pkgs = import nixpkgs { inherit system; };
in
rec {
packages = import ./default.nix { inherit pkgs; };
defaultPackage = packages.uninsane-dot-org;
devShells.default = with pkgs; mkShell {
buildInputs = with packages.uninsane-dot-org; (buildInputs ++ nativeBuildInputs);
};
})
);
}