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