pcb2gcode: 3.0.2 -> 3.0.4

This commit is contained in:
Thomas Butter
2026-05-16 17:52:25 +02:00
committed by Thomas Butter
parent 1b65c95ad8
commit 76a286052e
2 changed files with 37 additions and 12 deletions
@@ -0,0 +1,20 @@
--- a/src/units.hpp
+++ b/src/units.hpp
@@ -370,7 +370,7 @@
}
namespace BoardSide {
-enum BoardSide {
+enum BoardSide : int {
AUTO,
FRONT,
BACK
@@ -433,7 +433,7 @@
} // namespace Software
namespace MillFeedDirection {
-enum MillFeedDirection {
+enum MillFeedDirection : int {
ANY,
CLIMB,
CONVENTIONAL
+17 -12
View File
@@ -2,48 +2,53 @@
stdenv,
lib,
fetchFromGitHub,
autoreconfHook,
cmake,
pkg-config,
boost,
glibmm,
gtkmm2,
gerbv,
geos,
librsvg,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pcb2gcode";
version = "3.0.2";
version = "3.0.4";
src = fetchFromGitHub {
owner = "pcb2gcode";
repo = "pcb2gcode";
rev = "v${finalAttrs.version}";
hash = "sha256-Vjv80QPrJyEYqHFbXR2n68csAWfCMMmi4NEZYe8/DcY=";
tag = "v${finalAttrs.version}";
hash = "sha256-tuVEtynzC9VBBm5tNNkdSr8Rrj3Oy5QOI6jNTmsIXbs=";
};
configureFlags = [
(lib.withFeatureAs true "boost" boost.dev)
patches = [
./boost-1.89.patch
];
nativeBuildInputs = [
autoreconfHook
cmake
pkg-config
];
cmakeFlags = [
(lib.cmakeBool "PCB2GCODE_COMPILE_WARNING_AS_ERROR" false)
];
preConfigure = lib.optionalString stdenv.isDarwin ''
export CXXFLAGS="$CXXFLAGS -fpermissive -Wno-error=c++20-extensions -Wno-error=invalid-constexpr"
'';
buildInputs = [
boost
glibmm
gtkmm2
gerbv
geos
librsvg
];
postPatch = ''
substituteInPlace ./Makefile.am \
--replace '`git describe --dirty --always --tags`' '${finalAttrs.version}'
'';
meta = {
description = "Command-line tool for isolation, routing and drilling of PCBs";
longDescription = ''