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"
},
"locked": {
"lastModified": 1621198319,
"narHash": "sha256-PbH2KtPY+9hqXDtVM0rQOZJleXt7qnlHAyOpXuMpUWA=",
"lastModified": 1621199322,
"narHash": "sha256-if/1PbTs6QsrY6jO/b9SRYZez3qLeZx1e+oWHJA6pxE=",
"owner": "yusdacra",
"repo": "html.nix",
"rev": "3a5d9ee9a6e390885ba9b61a76a9c85c6a29ec7a",
"rev": "1ee7c9ebfccc24ea0653484f597e6ae07ac71770",
"type": "github"
},
"original": {

View File

@ -13,17 +13,17 @@
let
lib = htmlNix.lib.${system};
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
rec {
apps = {
website = mkApp {
drv = lib.pkgsLib.mkServeFromSite site;
drv = lib.pkgsLib.mkServeFromSite (site true);
name = "serve";
};
};
packages = {
website = lib.pkgsLib.mkSitePath site;
website = lib.pkgsLib.mkSitePath (site false);
};
defaultPackage = packages.website;
defaultApp = apps.website;