anchor.diff:            rm -f /var/cache/hald/fdi-cache
   
         end script
  +
  +      # HACK ? These environment variables manipulated inside
  +      # 'src'/hald/mmap_cache.c are used for testing the daemon
  +      env HAL_FDI_SOURCE_PREPROBE=${fdi}/preprobe
  +      env HAL_FDI_SOURCE_INFORMATION=${fdi}/information
  +      env HAL_FDI_SOURCE_POLICY=${fdi}/policy
   
         respawn ${hal}/sbin/hald --daemon=no
       '';
  
positive.code:           default = true;
            description = "
              Whether to start the HAL daemon.
            ";
          };
        };
  
negative.code:     gid = (import ../system/ids.nix).gids.haldaemon;
    };
  
    fdi =
      if cfg.extraFdi == [] then
        hal + "/share/hal/fdi"
      else
        pkgs.buildEnv {
          name = "hal-fdi";
          pathsToLink = [ "/preprobe" "/information" "/policy" ];
          paths = [ (hal + "/share/hal/fdi") ] ++ cfg.extraFdi;
        };
  
    job = {
      name = "hal";
  