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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,73 @@
{ lib, stdenv
, substituteAll
, fetchFromGitHub
, pkg-config
, meson
, ninja
, gobject-introspection
, python3
, libyaml
, rpm
, file
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_412
, glib
}:
stdenv.mkDerivation rec {
pname = "libmodulemd";
version = "2.14.0";
outputs = [ "bin" "out" "dev" "devdoc" "man" "py" ];
src = fetchFromGitHub {
owner = "fedora-modularity";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-ccLk8O0UJwy7WZYr5Bq2XqaSFNe4i7HQehmVoB5C2Yg=";
};
patches = [
# Use proper glib devdoc path.
(substituteAll {
src = ./glib-devdoc.patch;
glib_devdoc = glib.devdoc;
})
];
nativeBuildInputs = [
pkg-config
meson
ninja
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_412
gobject-introspection
];
buildInputs = [
libyaml
rpm
file # for libmagic
glib
];
mesonFlags = [
"-Dgobject_overrides_dir_py3=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
];
postFixup = ''
# Python overrides depend our own typelibs and other packages
mkdir -p "$py/nix-support"
echo "$out ${python3.pkgs.pygobject3} ${python3.pkgs.six}" > "$py/nix-support/propagated-build-inputs"
'';
meta = with lib; {
description = "C Library for manipulating module metadata files";
homepage = "https://github.com/fedora-modularity/libmodulemd";
license = licenses.mit;
maintainers = with maintainers; [ ];
platforms = platforms.linux ++ platforms.darwin ;
};
}

View file

@ -0,0 +1,13 @@
diff --git a/meson.build b/meson.build
index a8b02b4..dd31a76 100644
--- a/meson.build
+++ b/meson.build
@@ -67,7 +67,7 @@ test = find_program('test')
with_docs = get_option('with_docs')
if with_docs
gtkdoc = dependency('gtk-doc')
- glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
+ glib_docpath = join_paths('@glib_devdoc@', 'share', 'gtk-doc', 'html')
ret = run_command ([test, '-e', join_paths(glib_docpath, 'glib/index.html')])
if ret.returncode() != 0