uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
110
pkgs/tools/graphics/graphviz/default.nix
Normal file
110
pkgs/tools/graphics/graphviz/default.nix
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, cairo
|
||||
, expat
|
||||
, flex
|
||||
, fontconfig
|
||||
, gd
|
||||
, gts
|
||||
, libdevil
|
||||
, libjpeg
|
||||
, libpng
|
||||
, libtool
|
||||
, pango
|
||||
, bash
|
||||
, bison
|
||||
, xorg
|
||||
, ApplicationServices
|
||||
, python3
|
||||
, fltk
|
||||
, exiv2
|
||||
, withXorg ? true
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) optional optionals optionalString;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "graphviz";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "graphviz";
|
||||
repo = "graphviz";
|
||||
# use rev as tags have disappeared before
|
||||
rev = "24cf7232bb8728823466e0ef536862013893e567";
|
||||
sha256 = "sha256-qqrpCJ9WP8wadupp4YRJMMaSCeFIDuFDQvEOpbG/wGM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
python3
|
||||
bison
|
||||
flex
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libpng
|
||||
libjpeg
|
||||
expat
|
||||
fontconfig
|
||||
gd
|
||||
gts
|
||||
libdevil
|
||||
pango
|
||||
bash
|
||||
] ++ optionals withXorg (with xorg; [ libXrender libXaw libXpm ])
|
||||
++ optionals stdenv.isDarwin [ ApplicationServices ];
|
||||
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-ltdl-lib=${libtool.lib}/lib"
|
||||
"--with-ltdl-include=${libtool}/include"
|
||||
] ++ lib.optional (xorg == null) "--without-x";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
CPPFLAGS = lib.optionalString (withXorg && stdenv.isDarwin)
|
||||
"-I${cairo.dev}/include/cairo";
|
||||
|
||||
# ''
|
||||
# substituteInPlace rtest/rtest.sh \
|
||||
# --replace "/bin/ksh" "${mksh}/bin/mksh"
|
||||
# '';
|
||||
|
||||
doCheck = false; # fails with "Graphviz test suite requires ksh93" which is not in nixpkgs
|
||||
|
||||
postPatch = ''
|
||||
for f in $(find . -name Makefile.in); do
|
||||
substituteInPlace $f --replace "-lstdc++" "-lc++"
|
||||
done
|
||||
'';
|
||||
|
||||
preAutoreconf = "./autogen.sh";
|
||||
|
||||
postFixup = optionalString withXorg ''
|
||||
substituteInPlace $out/bin/dotty --replace '`which lefty`' $out/bin/lefty
|
||||
substituteInPlace $out/bin/vimdot \
|
||||
--replace '"/usr/bin/vi"' '"$(command -v vi)"' \
|
||||
--replace '"/usr/bin/vim"' '"$(command -v vim)"' \
|
||||
--replace /usr/bin/vimdot $out/bin/vimdot \
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
inherit (python3.pkgs) pygraphviz;
|
||||
inherit fltk exiv2;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://graphviz.org";
|
||||
description = "Graph visualization tools";
|
||||
license = licenses.epl10;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ bjornfor raskin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue