anchor.diff:    generateProfilesMapping = pkgs: infrastructure: targetNames: targetProperty: serviceActivationMapping:
       let
         target = getAttr (head targetNames) infrastructure;
  -      servicesPerTarget = queryServicesByTargetName serviceActivationMapping (head targetNames) infrastructure;
  -      profileManifest = generateProfileManifest serviceActivationMapping (head targetNames) infrastructure;
  +      servicesPerTarget = queryServicesByTargetName serviceActivationMapping (head targetNames) infrastructure targetProperty;
  +      profileManifest = generateProfileManifest serviceActivationMapping (head targetNames) infrastructure targetProperty;
         mappingItem = {
           profile = (pkgs.buildEnv {
             name = head targetNames;
  
positive.code:    * serviceActivationMapping: List of activation mappings
     * targetName: Name of the target in the infrastructure model to filter on 
     * infrastructure: Infrastructure attributeset
     *   
     * Returns:
     * List of services that are distributed to the given target name
     */
     
    queryServicesByTargetName = serviceActivationMapping: targetName: infrastructure:
      if serviceActivationMapping == [] then []
      else
        if (head serviceActivationMapping).target == getAttr targetName infrastructure
        then [ (head serviceActivationMapping).service ] ++ (queryServicesByTargetName (tail serviceActivationMapping) targetName infrastructure)
        else queryServicesByTargetName (tail serviceActivationMapping) targetName infrastructure
    ;
  
    /*
  
negative.code:    * serviceActivationMapping: List of activation mappings
     * targetName: Name of the target in the infrastructure model to filter on 
     * infrastructure: Infrastructure attributeset
     * targetProperty: Attribute from the infrastructure model that is used to connect to the Disnix interface
     * 
     * Returns:
     * List of services and types that are distributed to the given target name
     */
    
    generateProfileManifest = serviceActivationMapping: targetName: infrastructure: targetProperty:
      if serviceActivationMapping == [] then []
      else
        if (head serviceActivationMapping).target == getAttr targetProperty (getAttr targetName infrastructure)
        then [ (head serviceActivationMapping).service (head serviceActivationMapping).type ] ++ (generateProfileManifest (tail serviceActivationMapping) targetName infrastructure targetProperty)
        else generateProfileManifest (tail serviceActivationMapping) targetName infrastructure targetProperty
    ;
    
    /*
  