Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
libX11,
|
|
libpng,
|
|
libjpeg,
|
|
expat,
|
|
libXaw,
|
|
bison,
|
|
libtool,
|
|
fontconfig,
|
|
pango,
|
|
gd,
|
|
libwebp,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "graphviz";
|
|
version = "2.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-${version}.tar.gz";
|
|
sha256 = "39b8e1f2ba4cc1f5bdc8e39c7be35e5f831253008e4ee2c176984f080416676c";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
libX11
|
|
libpng
|
|
libjpeg
|
|
expat
|
|
libXaw
|
|
bison
|
|
libtool
|
|
fontconfig
|
|
pango
|
|
gd
|
|
libwebp
|
|
];
|
|
|
|
hardeningDisable = [
|
|
"format"
|
|
"fortify"
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-pngincludedir=${libpng.dev}/include"
|
|
"--with-pnglibdir=${libpng.out}/lib"
|
|
"--with-jpegincludedir=${libjpeg.dev}/include"
|
|
"--with-jpeglibdir=${libjpeg.out}/lib"
|
|
"--with-expatincludedir=${expat.dev}/include"
|
|
"--with-expatlibdir=${expat.out}/lib"
|
|
"--with-ltdl-include=${libtool}/include"
|
|
"--with-ltdl-lib=${libtool.lib}/lib"
|
|
]
|
|
++ lib.optional (libX11 == null) "--without-x";
|
|
|
|
meta = {
|
|
description = "Program for visualising graphs";
|
|
homepage = "http://www.graphviz.org/";
|
|
branch = "2.0";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|