blob: 257df7a2da0813bda0d4bc07e3e90f22b169b2c1 (
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
|
{ lib, stdenv, fetchFromGitHub, pkg-config, gettext, libtool, automake, autoconf, cairo, gtk2-x11, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "gerbv";
version = "2.9.7";
src = fetchFromGitHub {
owner = "gerbv";
repo = pname;
rev = "v${version}";
hash = "sha256-KxKNMWhWwmlIpueDOSWAWADEHFha8axywPJ6rRz0jIg=";
};
postPatch = ''
sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac
'';
nativeBuildInputs = [ autoreconfHook pkg-config automake autoconf ];
buildInputs = [ gettext libtool cairo gtk2-x11 ];
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}";
maintainers = with maintainers; [ mog ];
platforms = platforms.unix;
license = licenses.gpl2;
};
}
|