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
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, stdenv, fetchurl, ocamlPackages, gnome2, pkg-config, makeWrapper, glib
|
||||
, libtool, libpng, bison, expat, fontconfig, gd, pango, libjpeg, libwebp, xlibsWrapper, libXaw
|
||||
}:
|
||||
# We need an old version of Graphviz for format compatibility reasons.
|
||||
# This version is vulnerable, but monotone-viz will never feed it bad input.
|
||||
let graphviz_2_0 = import ./graphviz-2.0.nix {
|
||||
inherit lib stdenv fetchurl pkg-config xlibsWrapper libpng libjpeg expat libXaw
|
||||
bison libtool fontconfig pango gd libwebp;
|
||||
}; in
|
||||
let inherit (gnome2) libgnomecanvas; in
|
||||
let inherit (ocamlPackages) ocaml lablgtk camlp4; in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.0.2";
|
||||
pname = "monotone-viz";
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ocaml lablgtk libgnomecanvas glib graphviz_2_0 camlp4];
|
||||
src = fetchurl {
|
||||
url = "http://oandrieu.nerim.net/monotone-viz/${pname}-${version}-nolablgtk.tar.gz";
|
||||
sha256 = "1l5x4xqz5g1aaqbc1x80mg0yzkiah9ma9k9mivmn08alkjlakkdk";
|
||||
};
|
||||
|
||||
prePatch="ln -s . a; ln -s . b";
|
||||
patchFlags = ["-p0"];
|
||||
patches = [
|
||||
(fetchurl {
|
||||
url = "https://src.fedoraproject.org/cgit/rpms/monotone-viz.git/plain/monotone-viz-1.0.2-dot.patch";
|
||||
sha256 = "0risfy8iqmkr209hmnvpv57ywbd3rvchzzd0jy2lfyqrrrm6zknw";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "https://src.fedoraproject.org/cgit/rpms/monotone-viz.git/plain/monotone-viz-1.0.2-new-stdio.patch";
|
||||
sha256 = "16bj0ppzqd45an154dr7sifjra7lv4m9anxfw3c56y763jq7fafa";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "https://src.fedoraproject.org/cgit/rpms/monotone-viz.git/plain/monotone-viz-1.0.2-typefix.patch";
|
||||
sha256 = "1gfp82rc7pawb5x4hh2wf7xh1l1l54ib75930xgd1y437la4703r";
|
||||
})
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
configureFlags="$configureFlags --with-lablgtk-dir=$(echo ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2)"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/monotone-viz" --prefix PATH : "${graphviz_2_0}/bin/"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Monotone ancestry visualiser";
|
||||
license = lib.licenses.gpl2Plus ;
|
||||
maintainers = [lib.maintainers.raskin];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
, xlibsWrapper
|
||||
, 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 = [
|
||||
xlibsWrapper
|
||||
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 (xlibsWrapper == null) "--without-x";
|
||||
|
||||
meta = {
|
||||
description = "A program for visualising graphs";
|
||||
homepage = "http://www.graphviz.org/";
|
||||
branch = "2.0";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue