about summary refs log tree commit diff
path: root/pkgs/tools/misc/pcb2gcode
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-05-09 04:24:53 -0700
committerAdam Joseph <adam@westernsemico.com>2022-05-09 05:40:44 -0700
commit0fc95f66fa3a506b9f7ff84eb5b68121cf1aefe5 (patch)
treeb3fa5c340a7024e9722017f5a64c7a1238b326aa /pkgs/tools/misc/pcb2gcode
parent13ed374ab28d552dd2d010a28df06f9201c1d5f6 (diff)
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.
Diffstat (limited to 'pkgs/tools/misc/pcb2gcode')
-rw-r--r--pkgs/tools/misc/pcb2gcode/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pcb2gcode/default.nix b/pkgs/tools/misc/pcb2gcode/default.nix
index 48fc7bc32b417..146233b2e029d 100644
--- a/pkgs/tools/misc/pcb2gcode/default.nix
+++ b/pkgs/tools/misc/pcb2gcode/default.nix
@@ -9,6 +9,7 @@
 , gerbv
 , librsvg
 , bash
+, fetchpatch
 }:
 
 stdenv.mkDerivation rec {
@@ -22,6 +23,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-3VQlYtSi6yWWNuxTlBzvBtkM5hAss47xat+sEW+P79E=";
   };
 
+  patches = [
+    # the patch below is part of upstream mainline, we can remove this
+    # when they make their next release
+    (fetchpatch {
+      url = "https://github.com/pcb2gcode/pcb2gcode/commit/01cd18a6d859ab1aac6c532c99be9109f083448d.patch";
+      sha256 = "sha256-5hl8KsDxSWMzXS3oRG0fBfHFq0IpZ//sU8lfY9Yp8L0=";
+    })
+  ];
+
   nativeBuildInputs = [ autoreconfHook pkg-config ];
 
   buildInputs = [ boost glibmm gtkmm2 gerbv librsvg ];