uhd: fix for boost187

https://github.com/EttusResearch/uhd/commit/adfe953d965e58b5931c1b1968899492c8087cf6

authored by Reno Dakota and committed by Bjørn Forsman eede7811 f2e88eaa

+19
+19
pkgs/applications/radio/uhd/default.nix
··· 1 { 2 lib, 3 stdenv, 4 fetchurl, 5 fetchFromGitHub, 6 cmake, ··· 179 # Build only the host software 180 preConfigure = "cd host"; 181 patches = [ 182 # Disable tests that fail in the sandbox, last checked at version 4.6.0.0 183 ./no-adapter-tests.patch 184 ];
··· 1 { 2 lib, 3 stdenv, 4 + substitute, 5 + fetchpatch, 6 fetchurl, 7 fetchFromGitHub, 8 cmake, ··· 181 # Build only the host software 182 preConfigure = "cd host"; 183 patches = [ 184 + # fix for boost 187 remove on next update 185 + (substitute { 186 + src = fetchpatch { 187 + name = "boost-187.patch"; 188 + url = "https://github.com/EttusResearch/uhd/commit/adfe953d965e58b5931c1b1968899492c8087cf6.patch"; 189 + hash = "sha256-qzxe6QhGoyBul7YjCiPJfeP+3dIoo1hh2sjgYmc9IiI="; 190 + }; 191 + # The last two hunks in client.cc will fail without these substitutions 192 + substitutions = [ 193 + "--replace-fail" 194 + "[buffer, idx, func_name, p, this]" 195 + "[=]" 196 + "--replace-fail" 197 + "[buffer, this]" 198 + "[=]" 199 + ]; 200 + }) 201 # Disable tests that fail in the sandbox, last checked at version 4.6.0.0 202 ./no-adapter-tests.patch 203 ];