This commit is contained in:
dusk 2021-05-17 00:34:46 +03:00
parent c174081495
commit dbe2b0835a
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 6 additions and 6 deletions

View File

@ -23,11 +23,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1621198319, "lastModified": 1621199322,
"narHash": "sha256-PbH2KtPY+9hqXDtVM0rQOZJleXt7qnlHAyOpXuMpUWA=", "narHash": "sha256-if/1PbTs6QsrY6jO/b9SRYZez3qLeZx1e+oWHJA6pxE=",
"owner": "yusdacra", "owner": "yusdacra",
"repo": "html.nix", "repo": "html.nix",
"rev": "3a5d9ee9a6e390885ba9b61a76a9c85c6a29ec7a", "rev": "1ee7c9ebfccc24ea0653484f597e6ae07ac71770",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -13,17 +13,17 @@
let let
lib = htmlNix.lib.${system}; lib = htmlNix.lib.${system};
ownTemplater = x: x; ownTemplater = x: x;
site = lib.pkgsLib.mkSiteFrom { src = ./.; templater = context: ownTemplater (lib.templaters.basic context); }; site = local: lib.pkgsLib.mkSiteFrom { inherit local; src = ./.; templater = context: ownTemplater (lib.templaters.basic context); };
in in
rec { rec {
apps = { apps = {
website = mkApp { website = mkApp {
drv = lib.pkgsLib.mkServeFromSite site; drv = lib.pkgsLib.mkServeFromSite (site true);
name = "serve"; name = "serve";
}; };
}; };
packages = { packages = {
website = lib.pkgsLib.mkSitePath site; website = lib.pkgsLib.mkSitePath (site false);
}; };
defaultPackage = packages.website; defaultPackage = packages.website;
defaultApp = apps.website; defaultApp = apps.website;