anchor.diff: -{ stdenv, mysql, dysnomia
  +{ stdenv, mysql, nettools, dysnomia
   , mysqlUsername ? "root", mysqlPassword ? "secret"
   , user ? "mysql-database", group ? "mysql-database"
   , dataDir ? "/var/db/mysql", pidDir ? "/run/mysqld"
  
positive.code:     
      ln -s ${mysql}/bin/mysql $out/bin
      ln -s ${mysql}/bin/mysqldump $out/bin
      
      # Create wrapper script
      cat > $out/bin/wrapper <<EOF
      #! ${stdenv.shell} -e
      
      case "\$1" in
          activate)
  
negative.code:                 ( echo "use mysql;"
                    echo "update user set Password=password('${mysqlPassword}') where User='${mysqlUsername}';"
                    echo "flush privileges;"
                    echo "grant all on *.* to '${mysqlUsername}'@'%' identified by '${mysqlPassword}';"
                  ) | ${mysql}/bin/mysql -u root -N
              fi
              ;;
  