pcb2gcode: cherry-pick patch from upstream to fix build

The build failure shown here:

https://hydra.nixos.org/build/176023034

Is fixed upstream, but they have not made a new release yet. Let's
cherry-pick their fix until the next release.

+10
+10
pkgs/tools/misc/pcb2gcode/default.nix
··· 9 9 , gerbv 10 10 , librsvg 11 11 , bash 12 + , fetchpatch 12 13 }: 13 14 14 15 stdenv.mkDerivation rec { ··· 21 22 rev = "v${version}"; 22 23 sha256 = "sha256-3VQlYtSi6yWWNuxTlBzvBtkM5hAss47xat+sEW+P79E="; 23 24 }; 25 + 26 + patches = [ 27 + # the patch below is part of upstream mainline, we can remove this 28 + # when they make their next release 29 + (fetchpatch { 30 + url = "https://github.com/pcb2gcode/pcb2gcode/commit/01cd18a6d859ab1aac6c532c99be9109f083448d.patch"; 31 + sha256 = "sha256-5hl8KsDxSWMzXS3oRG0fBfHFq0IpZ//sU8lfY9Yp8L0="; 32 + }) 33 + ]; 24 34 25 35 nativeBuildInputs = [ autoreconfHook pkg-config ]; 26 36