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