anchor.diff:    NIX_CFLAGS_COMPILE = [ "-fPIC" ];
   
     postPatch = ''
  -    sed -e "s@/usr/local/lib@$out/lib@g" -i deps/Makefile
  -    sed -e "s@/usr/lib@$out/lib@g" -i deps/Makefile
  +    sed -i deps/Makefile \
  +        -e "s@/usr/local/lib@$out/lib@g" \
  +        -e "s@/usr/lib@$out/lib@g" \
  +        -e "s@/usr/include/double-conversion@${double_conversion}/include/double-conversion@g"
   
       patchShebangs . contrib
   
  
positive.code:       "prefix=$(out)"
        "SHELL=${stdenv.shell}"
  
        "USE_SYSTEM_PATCHELF=1"
  
        "USE_SYSTEM_BLAS=1"
        "LIBBLAS=-lopenblas"
        "LIBBLASNAME=libopenblas"
  
negative.code: { stdenv, fetchgit, fetchurl
  # build tools
  , gfortran, git, m4, patchelf, perl, which
  # libjulia dependencies
  , libunwind, llvm, readline, utf8proc, zlib
  # standard library dependencies
  , double_conversion, fftwSinglePrec, fftw, glpk, gmp, mpfr, pcre
  , openblas, arpack, suitesparse
  }:
  
  with stdenv.lib;
  