support extra injection in template

This commit is contained in:
notgne2 2020-04-28 16:22:52 -07:00
parent 33502dbd84
commit 617453769b

View File

@ -140,7 +140,9 @@ let
, src
, nodePackages ? []
, routes ? [ "/" ]
,
, extraHead ? ""
, extraBody ? ""
, extraPostBody ? ""
}:
let
nodeSource = symlinkJoin {
@ -207,9 +209,12 @@ let
<meta name="msapplication-TileImage" content="/appdata/mstile-144x144.png">
<meta name="msapplication-config" content="/appdata/browserconfig.xml">
<meta name="theme-color" content="${themeColor}">
${extraHead}
</head>
<body>
${extraBody}
</body>
${extraPostBody}
</html>
'';
in stdenv.mkDerivation {