writeJq: -n isn't the same as < /dev/null

This commit is contained in:
tv 2017-02-10 09:30:37 +01:00
parent e78a8c0725
commit b170e01ec8

View File

@ -257,7 +257,7 @@ with import <stockholm/lib>;
pkgs.writeOut (baseNameOf name) {
${optionalString (types.absolute-pathname.check name) name} = {
check = pkgs.writeDash "jqcheck.sh" ''
exec ${pkgs.jq}/bin/jq -f "$1" -n
exec ${pkgs.jq}/bin/jq -f "$1" < /dev/null
'';
inherit text;
};