12 lines
296 B
Nix
12 lines
296 B
Nix
|
final: prev: {
|
||
|
writers = prev.writers // {
|
||
|
writeNginxConfig = name: text: final.runCommandLocal name {
|
||
|
nginxConfig = prev.writers.writeNginxConfig name text;
|
||
|
nativeBuildInputs = [ final.nginx ];
|
||
|
} ''
|
||
|
ln -s "$nginxConfig" "$out"
|
||
|
nginx -t -c "$out"
|
||
|
'';
|
||
|
};
|
||
|
}
|