Properly expose a default package for all operating systems
This commit is contained in:
parent
29c6c9bcba
commit
67b47d9c29
14
flake.nix
14
flake.nix
|
@ -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"; };
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user