Skip to content

Commit

Permalink
pcb2gcode: fix build on darwin
Browse files Browse the repository at this point in the history
This version bumps gerbv as well.
  • Loading branch information
cransom committed Apr 20, 2023
1 parent 9321f2c commit 3ed1e3b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
19 changes: 10 additions & 9 deletions pkgs/applications/science/electronics/gerbv/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{ lib, stdenv, fetchgit, fetchpatch, pkg-config, gettext, libtool, automake, autoconf, cairo, gtk2, autoreconfHook }:
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, gettext, libtool, automake, autoconf, cairo, gtk2-x11, autoreconfHook }:

stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "gerbv";
version = "2015-10-08";
version = "2.7.0";

src = fetchgit {
url = "git://git.geda-project.org/gerbv.git";
rev = "76b8b67bfa10823ce98f1c4c3b49a2afcadf7659";
sha256 = "00jn1xhf6kblxc5gac1wvk8zm12fy6sk81nj3jwdag0z6wk3z446";
src = fetchurl {
url = "mirror://sourceforge/gerbv/${pname}-${version}.tar.gz";
sha256 = "sha256-xe6AjEIwzmvjrRCrY8VHCYOG1DAicE3iXduTeOYgU7Q=";
};

patches = [
Expand All @@ -21,15 +20,17 @@ stdenv.mkDerivation {
];

nativeBuildInputs = [ autoreconfHook pkg-config automake autoconf ];
buildInputs = [ gettext libtool cairo gtk2 ];
buildInputs = [ gettext libtool cairo gtk2-x11 ];

configureFlags = ["--disable-update-desktop-database"];

env.NIX_CFLAGS_COMPILE = "-Wno-format-security";

meta = with lib; {
description = "A Gerber (RS-274X) viewer";
homepage = "http://gerbv.geda-project.org/";
maintainers = with maintainers; [ mog ];
platforms = platforms.linux;
platforms = platforms.unix;
license = licenses.gpl2;
};
}
2 changes: 1 addition & 1 deletion pkgs/tools/misc/pcb2gcode/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/pcb2gcode/pcb2gcode";
license = licenses.gpl3Only;
maintainers = with maintainers; [ kritnich ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37845,7 +37845,9 @@ with pkgs;
guile = guile_2_0;
};

gerbv = callPackage ../applications/science/electronics/gerbv { };
gerbv = callPackage ../applications/science/electronics/gerbv {
cairo = cairo.override { x11Support = true; };
};

gtkwave = callPackage ../applications/science/electronics/gtkwave { };

Expand Down

0 comments on commit 3ed1e3b

Please sign in to comment.