Files
2026-05-15 00:26:41 +07:00

62 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
autoreconfHook,
groff,
pkg-config,
guile,
gtk2,
flex,
gawk,
perl,
}:
stdenv.mkDerivation rec {
pname = "geda";
version = "1.10.2";
src = fetchurl {
url = "http://ftp.geda-project.org/geda-gaf/stable/v${lib.versions.majorMinor version}/${version}/geda-gaf-${version}.tar.gz";
hash = "sha256-6GKrJBUoU4+jvuJzkmH1aAERArYMXjmi8DWGY8BCyKQ=";
};
patches = [
(fetchpatch {
name = "geda-1.10.2-drop-xorn.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-electronics/geda/files/geda-1.10.2-drop-xorn.patch?id=5589cc7bc6c4f18f75c40725a550b8d76e7f5ca1";
hash = "sha256-jPQaHjEDwCEfZqDGku+xyIMl5WlWlVcpPv1W6Xf8Grs=";
})
];
configureFlags = [
"--disable-update-xdg-database"
"--without-libfam"
];
# gcc 15 C23 default breaks K&R () prototypes and errors on -Wincompatible-pointer-types
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
nativeBuildInputs = [
autoreconfHook
groff
pkg-config
];
buildInputs = [
guile
gtk2
flex
gawk
perl
];
meta = {
description = "Full GPL'd suite of Electronic Design Automation tools";
homepage = "https://geda.sourceforge.net/";
maintainers = with lib.maintainers; [ pjones ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl2;
};
}