anchor.diff:          deps = [
             pkgs.nodePackages.optparse
           ];
  -      };
  +      });
     
  -    doc = {tarball ? jobs.tarball {} }:
  +    doc = pkgs.stdenv.mkDerivation {
  +      name = "nijs-docs-${version}";
  +      src = determineTarballPath tarball;
       
  -      pkgs.stdenv.mkDerivation {
  -        name = "nijs-docs-${version}";
  -        src = determineTarballPath tarball;
  -    
  -        buildInputs = [ pkgs.rubyLibs.jsduck ];
  -        buildPhase = "make duck";
  -        installPhase = ''
  -          mkdir -p $out/nix-support
  -          cp -R build/* $out
  -          echo "doc api $out" >> $out/nix-support/hydra-build-products
  -        '';
  -      };
  +      buildInputs = [ pkgs.rubyLibs.jsduck ];
  +      buildPhase = "make duck";
  +      installPhase = ''
  +        mkdir -p $out/nix-support
  +        cp -R build/* $out
  +        echo "doc api $out" >> $out/nix-support/hydra-build-products
  +      '';
  +    };
     
       tests = {
         proxytests = import ./tests/proxytests.nix {
  
positive.code:     outPath = "${tarball}/tarballs/nijs-${version}.tgz";
    };
  
    jobs = {
      tarball = {officialRelease ? false}:
    
        pkgs.releaseTools.sourceTarball {
          name = "nijs-tarball";
          inherit version;
          src = ./.;
          inherit officialRelease;
          distPhase = ''
            mkdir -p package
            cd package
            cp -av $src/* .
            cd ..
            tar cfvz nijs-${version}.tgz package
            mkdir -pv $out/tarballs
            cp *.tgz $out/tarballs
          '';
        };
    
      build = {tarball ? jobs.tarball {} }:
  
        pkgs.nodePackages.buildNodePackage {
          name = "nijs-${version}";
          src = [ (determineTarballPath tarball) ];
  
negative.code: { nixpkgs ? <nixpkgs>
  , systems ? [ "i686-linux" "x86_64-linux" ]
  , officialRelease ? false
  }:
  
  let
    pkgs = import nixpkgs {};
    
    version = builtins.readFile ./version;
    
    nijsImportPackage = import ./lib/importPackage.nix {
      inherit nixpkgs;
      system = builtins.currentSystem;
    };
    
    determineTarballPath = tarball: {
  