2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, guile, gtk2, flex, gawk, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "geda";
|
|
|
|
version = "1.8.2-20130925";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.geda-project.org/geda-gaf/stable/v1.8/1.8.2/geda-gaf-1.8.2.tar.gz";
|
|
|
|
sha256 = "08dpa506xk4gjbbi8vnxcb640wq4ihlgmhzlssl52nhvxwx7gx5v";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream patch for -fno-common toolchains
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common-p1.patch";
|
|
|
|
url = "http://git.geda-project.org/geda-gaf/patch/?id=cb6bac898fe43c5a59b577123ba8698ec04deef6";
|
|
|
|
sha256 = "0njlh20qjrlqf5m8p92vmkl0jsm747f4mbqwvldnf8nd2j608nkq";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common-p2.patch";
|
|
|
|
url = "http://git.geda-project.org/geda-gaf/patch/?id=7b9d523a3558290b4487c3ff9a4a5b43e8941158";
|
|
|
|
sha256 = "1z9gzz5ngsbq6c9dw2dfz7kpsq97zhs1ma9saxm7hiybwadbj18k";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [
|
2021-02-05 17:12:51 +00:00
|
|
|
"--disable-update-xdg-database"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ guile gtk2 flex gawk perl ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Full GPL'd suite of Electronic Design Automation tools";
|
|
|
|
homepage = "http://www.geda-project.org/";
|
|
|
|
maintainers = with maintainers; [ pjones ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|