anchor.diff:    # nixpkgs.
     buildInputs = [
       boost
  +    cereal
       curl
       expat
       glew
  
positive.code: 
    prePatch = ''
      # In nix ioctls.h isn't available from the standard kernel-headers package
      # on other distributions. As the copy in glibc seems to be identical to the
      # one in the kernel, we use that one instead.
      sed -i 's|"/usr/include/asm-generic/ioctls.h"|<asm-generic/ioctls.h>|g' src/libslic3r/GCodeSender.cpp
    '' + lib.optionalString (lib.versionOlder "2.5" nloptVersion) ''
      # Since version 2.5.0 of nlopt we need to link to libnlopt, as libnlopt_cxx
  
negative.code: in
  stdenv.mkDerivation rec {
    pname = "prusa-slicer";
    version = "2.1.0";
  
    enableParallelBuilding = true;
  
  