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