aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-03-20 18:26:07 +0100
committertv <tv@krebsco.de>2019-03-20 18:28:28 +0100
commitd856f05daff9cd726d1e798f1bb9a18eecbe2f50 (patch)
treecfd9f92fcd10f4b7028b6ea50293cea5737c0161 /pkgs/default.nix
parent363dddd68092336a6ccec32c91c19ca718a55722 (diff)
pkgs: add writeNginxConfigv3.3.0
Diffstat (limited to 'pkgs/default.nix')
-rw-r--r--pkgs/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 2ffd414..21b837c 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -395,6 +395,15 @@ pkgs: oldpkgs: {
${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 =
trace (toString [
"The function `writeNixFromCabal` has been deprecated in favour of"