Properly expose a default package for all operating systems

This commit is contained in:
Danila Fedorin 2022-04-09 22:34:21 +00:00
parent 29c6c9bcba
commit 67b47d9c29

View File

@ -19,17 +19,17 @@
}; };
outputs = { self, blog-source, blog-source-localized, nixpkgs, flake-utils, katex-html }: outputs = { self, blog-source, blog-source-localized, nixpkgs, flake-utils, katex-html }:
{ let
buildersFor = system: import ./lib.nix { buildersFor = system: import ./lib.nix {
inherit blog-source blog-source-localized; inherit blog-source blog-source-localized;
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
katex-html = katex-html.defaultPackage.${system}; katex-html = katex-html.defaultPackage.${system};
}; };
in
{
inherit buildersFor;
nixosModule = (import ./module.nix); nixosModule = (import ./module.nix);
packages.x86_64-linux.blog-debug = (import ./lib.nix { } // flake-utils.lib.eachDefaultSystem (system: {
inherit blog-source blog-source-localized; defaultPackage = (buildersFor system).english { host = "danilafe.com"; };
pkgs = import nixpkgs { system = "x86_64-linux"; }; });
katex-html = katex-html.defaultPackage."x86_64-linux";
}).english { host = "danilafe.com"; };
};
} }