File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -516,13 +516,13 @@ let
516516
517517 # FIXME This is a bandaid. Rather than doing this, conditionals should be interpreted.
518518 ${ pkgs . lib . optionalString pkgs . stdenv . targetPlatform . isGhcjs ''
519- exposed_modules+=" $(jq -r '.library."exposed-modules"[]|select(type=="object" and .if.arch == "javascript")|.then[]' $json_cabal_file)"
519+ exposed_modules+=" $(jq -r '.library."exposed-modules"//[]|. []|select(type=="object" and .if.arch == "javascript")|.then[]' $json_cabal_file)"
520520 '' }
521521 ${ pkgs . lib . optionalString pkgs . stdenv . targetPlatform . isWindows ''
522- exposed_modules+=" $(jq -r '.library."exposed-modules"[]|select(type=="object" and .if.os == "windows")|.then[]' $json_cabal_file)"
522+ exposed_modules+=" $(jq -r '.library."exposed-modules"//[]|. []|select(type=="object" and .if.os == "windows")|.then[]' $json_cabal_file)"
523523 '' }
524524 ${ pkgs . lib . optionalString ( ! pkgs . stdenv . targetPlatform . isWindows ) ''
525- exposed_modules+=" $(jq -r '.library."exposed-modules"[]|select(type=="object" and .if.not.os == "windows")|.then[]' $json_cabal_file)"
525+ exposed_modules+=" $(jq -r '.library."exposed-modules"//[]|. []|select(type=="object" and .if.not.os == "windows")|.then[]' $json_cabal_file)"
526526 '' }
527527
528528 EXPOSED_MODULES_${ varname name } ="$(tr '\n' ' ' <<< "$exposed_modules $reexported_modules")"
You can’t perform that action at this time.
0 commit comments