Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkgs/build-support/writers/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, config, buildPackages, lib, stdenv, libiconv, mkNugetDeps, mkNugetSource, gixy }:
{ pkgs, config, buildPackages, lib, stdenv, libiconv, mkNugetDeps, mkNugetSource, gixy, crossplane, jq }:

let
aliases = if config.allowAliases then (import ./aliases.nix lib) else prev: {};
Expand Down Expand Up @@ -225,11 +225,12 @@ let
writeNginxConfig = name: text: pkgs.runCommandLocal name {
inherit text;
passAsFile = [ "text" ];
nativeBuildInputs = [ gixy ];
nativeBuildInputs = [ gixy crossplane jq ];
} /* sh */ ''
# nginx-config-formatter has an error - https://github.com/1connect/nginx-config-formatter/issues/16
awk -f ${awkFormatNginx} "$textPath" | sed '/^\s*$/d' > $out
gixy $out
crossplane parse --single-file $out | jq '.status != "ok" and (.errors | map(.error) | join("\n") + "\n" | halt_error) // empty'
'';

# writePerl takes a name an attributeset with libraries and some perl sourcecode and
Expand Down