anchor.diff:            };
           in
           
  -        with import "${nixos}/lib/testing.nix" { system = builtins.currentSystem; };
  +        with import "${nixpkgs}/nixos/lib/testing.nix" { system = builtins.currentSystem; };
           
           {
             install = simpleTest {
  
positive.code: { nixpkgs ? <nixpkgs>
  , systems ? [ "i686-linux" "x86_64-linux" ]
  }:
  
  let
    pkgs = import nixpkgs {};
  
negative.code:       , enableMongoDatabase ? false
        , enableSubversionRepository ? false
        , catalinaBaseDir ? "/var/tomcat"
        , system ? builtins.currentSystem
        }:
  
        with import nixpkgs { inherit system; };
          
        releaseTools.nixBuild {
          name = "dysnomia";
          version = builtins.readFile ./version;
          src = tarball;
          
          preConfigure = stdenv.lib.optionalString enableEjabberdDump "export PATH=$PATH:${ejabberd}/sbin";
  
          configureFlags = ''
            ${if enableApacheWebApplication then "--with-apache" else "--without-apache"}
            ${if enableAxis2WebService then "--with-axis2" else "--without-axis2"}
            ${if enableEjabberdDump then "--with-ejabberd" else "--without-ejabberd"}
            ${if enableMySQLDatabase then "--with-mysql" else "--without-mysql"}
            ${if enablePostgreSQLDatabase then "--with-postgresql" else "--without-postgresql"}
            ${if enableMongoDatabase then "--with-mongodb" else "--without-mongodb"}
            ${if enableTomcatWebApplication then "--with-tomcat=${catalinaBaseDir}" else "--without-tomcat"}
            ${if enableSubversionRepository then "--with-subversion" else "--without-subversion"}
          '';
          
          buildInputs = []
            ++ stdenv.lib.optional enableEjabberdDump ejabberd
            ++ stdenv.lib.optional enableMySQLDatabase mysql
            ++ stdenv.lib.optional enablePostgreSQLDatabase postgresql
            ++ stdenv.lib.optional enableMongoDatabase mongodb
            ++ stdenv.lib.optional enableSubversionRepository subversion;
        };
        
        tests = 
          with pkgs;
          
          let
            dysnomia = jobs.build {
              enableApacheWebApplication = true;
              enableAxis2WebService = true;
              enableEjabberdDump = true;
  