local
This commit is contained in:
parent
c174081495
commit
dbe2b0835a
@ -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": {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user