pkgs: add writeNginxConfig
This commit is contained in:
@@ -395,6 +395,15 @@ pkgs: oldpkgs: {
|
|||||||
${pkgs.jq}/bin/jq . "$jsonPath" > "$out"
|
${pkgs.jq}/bin/jq . "$jsonPath" > "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
writeNginxConfig = name: text: pkgs.runCommand name {
|
||||||
|
inherit text;
|
||||||
|
passAsFile = [ "text" ];
|
||||||
|
} /* sh */ ''
|
||||||
|
cp "$textPath" $out
|
||||||
|
${pkgs.nginx-config-formatter}/bin/nginxfmt $out
|
||||||
|
${pkgs.gixy}/bin/gixy $out
|
||||||
|
'';
|
||||||
|
|
||||||
writeNixFromCabal =
|
writeNixFromCabal =
|
||||||
trace (toString [
|
trace (toString [
|
||||||
"The function `writeNixFromCabal` has been deprecated in favour of"
|
"The function `writeNixFromCabal` has been deprecated in favour of"
|
||||||
|
|||||||
Reference in New Issue
Block a user