1{
2 lib,
3 stdenv,
4 fetchurl,
5 fetchpatch,
6 autoreconfHook,
7 groff,
8 pkg-config,
9 guile,
10 gtk2,
11 flex,
12 gawk,
13 perl,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "geda";
18 version = "1.10.2";
19
20 src = fetchurl {
21 url = "http://ftp.geda-project.org/geda-gaf/stable/v${lib.versions.majorMinor version}/${version}/geda-gaf-${version}.tar.gz";
22 hash = "sha256-6GKrJBUoU4+jvuJzkmH1aAERArYMXjmi8DWGY8BCyKQ=";
23 };
24
25 patches = [
26 (fetchpatch {
27 name = "geda-1.10.2-drop-xorn.patch";
28 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-electronics/geda/files/geda-1.10.2-drop-xorn.patch?id=5589cc7bc6c4f18f75c40725a550b8d76e7f5ca1";
29 hash = "sha256-jPQaHjEDwCEfZqDGku+xyIMl5WlWlVcpPv1W6Xf8Grs=";
30 })
31 ];
32
33 configureFlags = [
34 "--disable-update-xdg-database"
35 "--without-libfam"
36 ];
37
38 nativeBuildInputs = [
39 autoreconfHook
40 groff
41 pkg-config
42 ];
43 buildInputs = [
44 guile
45 gtk2
46 flex
47 gawk
48 perl
49 ];
50
51 meta = with lib; {
52 description = "Full GPL'd suite of Electronic Design Automation tools";
53 homepage = "https://geda.sourceforge.net/";
54 maintainers = with maintainers; [ pjones ];
55 platforms = platforms.linux;
56 license = licenses.gpl2;
57 };
58}