Properly expose a default package for all operating systems
This commit is contained in:
parent
29c6c9bcba
commit
67b47d9c29
16
flake.nix
16
flake.nix
|
@ -19,17 +19,17 @@
|
|||
};
|
||||
|
||||
outputs = { self, blog-source, blog-source-localized, nixpkgs, flake-utils, katex-html }:
|
||||
{
|
||||
let
|
||||
buildersFor = system: import ./lib.nix {
|
||||
inherit blog-source blog-source-localized;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
katex-html = katex-html.defaultPackage.${system};
|
||||
};
|
||||
nixosModule = (import ./module.nix);
|
||||
packages.x86_64-linux.blog-debug = (import ./lib.nix {
|
||||
inherit blog-source blog-source-localized;
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
katex-html = katex-html.defaultPackage."x86_64-linux";
|
||||
}).english { host = "danilafe.com"; };
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit buildersFor;
|
||||
nixosModule = (import ./module.nix);
|
||||
} // flake-utils.lib.eachDefaultSystem (system: {
|
||||
defaultPackage = (buildersFor system).english { host = "danilafe.com"; };
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user