anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / science / electronics / geda / default.nix
blob160928633a3cca3efbb237200ed055f1ba14684b
1 { lib, stdenv, fetchurl, fetchpatch, autoreconfHook, groff, pkg-config, guile, gtk2, flex, gawk, perl }:
3 stdenv.mkDerivation rec {
4   pname = "geda";
5   version = "1.10.2";
7   src = fetchurl {
8     url = "http://ftp.geda-project.org/geda-gaf/stable/v${lib.versions.majorMinor version}/${version}/geda-gaf-${version}.tar.gz";
9     hash = "sha256-6GKrJBUoU4+jvuJzkmH1aAERArYMXjmi8DWGY8BCyKQ=";
10   };
12   patches = [
13     (fetchpatch {
14       name = "geda-1.10.2-drop-xorn.patch";
15       url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-electronics/geda/files/geda-1.10.2-drop-xorn.patch?id=5589cc7bc6c4f18f75c40725a550b8d76e7f5ca1";
16       hash = "sha256-jPQaHjEDwCEfZqDGku+xyIMl5WlWlVcpPv1W6Xf8Grs=";
17     })
18   ];
20   configureFlags = [
21     "--disable-update-xdg-database"
22     "--without-libfam"
23   ];
25   nativeBuildInputs = [ autoreconfHook groff pkg-config ];
26   buildInputs = [ guile gtk2 flex gawk perl ];
28   meta = with lib; {
29     description = "Full GPL'd suite of Electronic Design Automation tools";
30     homepage = "http://www.geda-project.org/";
31     maintainers = with maintainers; [ pjones ];
32     platforms = platforms.linux;
33     license = licenses.gpl2;
34   };