anchor.diff:        "-Dlocincpth=${libc}/include"
         "-Dloclibpth=${libc}/lib"
       ]
  -    ++ stdenv.lib.optional (stdenv ? glibc) "-Dusethreads";
  +    ++ optional (stdenv ? glibc) "-Dusethreads";
   
     configureScript = "${stdenv.shell} ./Configure";
   
  
positive.code:     dist/IO/t/{io_multihomed.t,io_sock.t} \
      t/porting/{maintainers.t,regen.t} \
      cpan/Socket/t/get{name,addr}info.t \
    '' + stdenv.lib.optionalString stdenv.isFreeBSD ''
      cpan/CPANPLUS/t/04_CPANPLUS-Module.t \
      cpan/CPANPLUS/t/20_CPANPLUS-Dist-MM.t \
    '' + " ";
  
    postPatch = ''
      for test in ${testsToSkip}; do
        echo "Removing test" $test
        rm "$test"
  
negative.code:     ''
        configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
  
        ${optionalString stdenv.isArm ''
          configureFlagsArray=(-Dldflags="-lm -lrt")
        ''}
      '';
  
    preBuild = optionalString (!(stdenv ? gcc && stdenv.gcc.nativeTools))
      ''
        # Make Cwd work on NixOS (where we don't have a /bin/pwd).
        substituteInPlace dist/Cwd/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
  