1{
2 lib,
3 stdenv,
4 autoconf,
5 automake,
6 autoreconfHook,
7 cairo,
8 fetchFromGitHub,
9 gettext,
10 gtk2-x11,
11 libtool,
12 pkg-config,
13}:
14
15stdenv.mkDerivation rec {
16 pname = "gerbv";
17 version = "2.10.0";
18
19 src = fetchFromGitHub {
20 owner = "gerbv";
21 repo = pname;
22 tag = "v${version}";
23 hash = "sha256-sr48RGLYcMKuyH9p+5BhnR6QpKBvNOqqtRryw3+pbBk=";
24 };
25
26 postPatch = ''
27 sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac
28 '';
29
30 nativeBuildInputs = [
31 autoconf
32 automake
33 autoreconfHook
34 pkg-config
35 ];
36
37 buildInputs = [
38 cairo
39 gettext
40 gtk2-x11
41 libtool
42 ];
43
44 configureFlags = [
45 "--disable-update-desktop-database"
46 ];
47
48 meta = {
49 description = "Gerber (RS-274X) viewer";
50 mainProgram = "gerbv";
51 homepage = "https://gerbv.github.io/";
52 changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}";
53 license = lib.licenses.gpl2Plus;
54 maintainers = with lib.maintainers; [ mog ];
55 platforms = lib.platforms.unix;
56 };
57}