on iko/ghcjs-patch-master help sign in
Check that the library component package.conf.d/*.conf file is created (#956)
062a031Hamish Mackenzie
builder/comp-builder.nix+10
@@ -515,6 +515,16 @@ let
515 echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
515 echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
516 '');
516 '');
517
517
518+ doInstallCheck = true;
519+ installCheckPhase = lib.optionalString (haskellLib.isLibrary componentId) ''
520+ if test -n "$(shopt -s nullglob; echo $out/package.conf.d/${name}-*.conf)"; then
521+ echo $out/package.conf.d/${name}-*.conf " is present"
522+ else
523+ echo "ERROR: $out/package.conf.d/${name}-*.conf was not created"
524+ exit 1
525+ fi
526+ '';
527+
518 shellHook = ''
528 shellHook = ''
519 export PATH="${shellWrappers}/bin:$PATH"
529 export PATH="${shellWrappers}/bin:$PATH"
520 ${shellHookApplied}
530 ${shellHookApplied}