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
516
516
517
517
# FIXME This is a bandaid. Rather than doing this, conditionals should be interpreted.
518
518
${ 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)"
520
520
'' }
521
521
${ 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)"
523
523
'' }
524
524
${ 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)"
526
526
'' }
527
527
528
528
EXPOSED_MODULES_${ varname name } ="$(tr '\n' ' ' <<< "$exposed_modules $reexported_modules")"
You can’t perform that action at this time.
0 commit comments