2023-04-29 16:46:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, gettext, libtool, automake, autoconf, cairo, gtk2-x11, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gerbv";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/gerbv/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-xe6AjEIwzmvjrRCrY8VHCYOG1DAicE3iXduTeOYgU7Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
# Pull patch pending upstream inclusion for -fno-common toolchains:
|
|
|
|
# https://sourceforge.net/p/gerbv/patches/84/
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fnoc-mmon.patch";
|
|
|
|
url = "https://sourceforge.net/p/gerbv/patches/84/attachment/0001-gerbv-fix-build-on-gcc-10-fno-common.patch";
|
|
|
|
sha256 = "1avfbkqhxl7wxn1z19y30ilkwvdgpdkzhzawrs5y3damxmqq8ggk";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config automake autoconf ];
|
2023-04-29 16:46:19 +00:00
|
|
|
buildInputs = [ gettext libtool cairo gtk2-x11 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = ["--disable-update-desktop-database"];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-format-security";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Gerber (RS-274X) viewer";
|
|
|
|
homepage = "http://gerbv.geda-project.org/";
|
|
|
|
maintainers = with maintainers; [ mog ];
|
2023-04-29 16:46:19 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|