fix: import upstream (lovesegfault's) changes to hosts structure

This commit is contained in:
oddlama 2023-01-06 00:16:05 +01:00
parent c5a5cf14ba
commit 7ff57aa6e4
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
9 changed files with 148 additions and 54 deletions

View file

@ -59,11 +59,14 @@
checks = import ./nix/checks.nix inputs localSystem;
devShells.default = import ./nix/dev-shell.nix inputs localSystem;
legacyPackages =
{
default = self.packages.${localSystem}.all;
}
// (import ./nix/host-drvs.nix inputs localSystem);
packages = let
hostDrvs = import ./nix/host-drvs.nix inputs localSystem;
default =
if builtins.hasAttr "${localSystem}" hostDrvs
then {default = self.packages.${localSystem}.${localSystem};}
else {};
in
hostDrvs // default;
pkgs = import nixpkgs {
inherit localSystem;