anchor.diff:      '';
     };
   
  +  # haxelib causes segmentation fault
     docs = pkgs.stdenv.mkDerivation rec {
       name = "docs";
       inherit neko haxe haxeSrc doxZip;
  -    builder = builtins.toFile "builder.sh" ''
  -      source $stdenv/setup
  -      PATH=$haxe/bin:$neko/bin:$PATH
  -      HOME=.
  -      mkdir $out
  -
  -      haxelib setup .
  -      haxelib install $doxZip
  -      haxe -cp $haxeSrc/hsluv/Hsluv.hx -D doc-gen --macro 'include("hsluv")' --no-output -xml hsluv.xml
  -      haxelib run dox -i hsluv.xml -o $out
  +    buildInputs = [neko haxe];
  +    builder = builtins.toFile "builder.sh" ''
  +      source $stdenv/setup
  +      export HOME=.
  +      mkdir $out
  +
  +      # haxelib setup .
  +      # haxelib install $doxZip
  +      # haxe -cp $haxeSrc/hsluv/Hsluv.hx -D doc-gen --macro 'include("hsluv")' --no-output -xml hsluv.xml
  +      # haxelib run dox -i hsluv.xml -o $out
       '';
     };
   
     haxelibZip = pkgs.stdenv.mkDerivation rec {
       name = "haxelib";
  -    inherit zip haxe;
  +    inherit zip;
       haxeRoot = ./haxe;
  -    builder = builtins.toFile "builder.sh" ''
  -      source $stdenv/setup
  -      mkdir $out
  -      (cd $haxeRoot && $zip/bin/zip -r $out/hsluv.zip .)
  +    buildInputs = [zip];
  +    builder = builtins.toFile "builder.sh" ''
  +      source $stdenv/setup
  +      mkdir $out
  +      (cd $haxeRoot && zip -r $out/hsluv.zip .)
       '';
     };
   
  
positive.code:   nodeModules = pkgs.stdenv.mkDerivation rec {
      name = "node-modules";
      inherit nodejs pngJs mustacheJs jsFullNodePackage;
      builder = builtins.toFile "builder.sh" ''
        source $stdenv/setup
        PATH=$nodejs/bin:$PATH
        HOME=.
        npm install $pngJs
        npm install $mustacheJs
  
negative.code:     '';
    };
  
    haxeTest = pkgs.stdenv.mkDerivation rec {
      inherit haxe haxeSrc haxeTestSrc snapshotRev4;
      name = "hsluv-haxe-test";
      buildInputs = [haxe];
      builder = builtins.toFile "builder.sh" ''
        source $stdenv/setup
        haxe -cp $haxeSrc -cp $haxeTestSrc -main RunTests -resource $snapshotRev4@snapshot-rev4 --interp
        touch $out
      '';
    };
  