anchor.diff:    enableParallelBuilding = true;
   
     cmakeFlags = [
  +    "-DENABLE_LIBUHD=ON"
  +    "-DENABLE_USB=ON"
  +    "-DENABLE_TESTS=ON" # This installs tests as well so we delete them via postPhases
  +    "-DENABLE_EXAMPLES=${onOffBool enableExamples}"
  +    "-DENABLE_UTILS=${onOffBool enableUtils}"
  +    "-DENABLE_LIBUHD_C_API=${onOffBool enableLibuhd_C_api}"
  +    "-DENABLE_LIBUHD_PYTHON_API=${onOffBool enableLibuhd_Python_api}"
  +    "-DENABLE_LIBERIO=${onOffBool enableLiberio}"
  +    "-DENABLE_DPDK=${onOffBool enableDpdk}"
  +    # Devices
  +    "-DENABLE_OCTOCLOCK=${onOffBool enableOctoClock}"
  +    "-DENABLE_MPMD=${onOffBool enableMpmd}"
  +    "-DENABLE_B100=${onOffBool enableB100}"
  +    "-DENABLE_B200=${onOffBool enableB200}"
  +    "-DENABLE_USRP1=${onOffBool enableUsrp1}"
  +    "-DENABLE_USRP2=${onOffBool enableUsrp2}"
  +    "-DENABLE_X300=${onOffBool enableX300}"
  +    "-DENABLE_N230=${onOffBool enableN230}"
  +    "-DENABLE_N300=${onOffBool enableN300}"
  +    "-DENABLE_N320=${onOffBool enableN320}"
  +    "-DENABLE_E300=${onOffBool enableE300}"
  +    "-DENABLE_E320=${onOffBool enableE320}"
     ]
       # TODO: Check if this still needed
       # ABI differences GCC 7.1
  
positive.code: , fetchFromGitHub
  , cmake
  , pkgconfig
  , python
  , libusb1
  , boost
  }:
  
  # You need these udev rules to not have to run as root (copied from
  
negative.code: #
  #   SUBSYSTEMS=="usb", ATTRS{idVendor}=="fffe", ATTRS{idProduct}=="0002", MODE:="0666"
  #   SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0002", MODE:="0666"
  
  let
    onOffBool = b: if b then "ON" else "OFF";
    inherit (stdenv.lib) optionals;
  in
  
  stdenv.mkDerivation rec {
    pname = "uhd";
  