libxmlb: 0.1.10 → 0.1.11
https://github.com/hughsie/libxmlb/blob/0.1.11/NEWS Also formatted the expression and added installed tests
This commit is contained in:
@@ -1,25 +1,64 @@
|
||||
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, libuuid, gobject-introspection, gtk-doc, shared-mime-info, python3, docbook_xsl, docbook_xml_dtd_43 }:
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, docbook_xml_dtd_43
|
||||
, docbook_xsl
|
||||
, glib
|
||||
, gobject-introspection
|
||||
, gtk-doc
|
||||
, libuuid
|
||||
, meson
|
||||
, ninja
|
||||
, pkgconfig
|
||||
, python3
|
||||
, shared-mime-info
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libxmlb-${version}";
|
||||
version = "0.1.10";
|
||||
pname = "libxmlb";
|
||||
version = "0.1.11";
|
||||
|
||||
outputs = [ "out" "lib" "dev" "devdoc" ];
|
||||
outputs = [ "out" "lib" "dev" "devdoc" "installedTests" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hughsie";
|
||||
repo = "libxmlb";
|
||||
rev = version;
|
||||
sha256 = "1ismh3bdwd0l1fjlhwycam89faxjmpb0wxqlbv58m0z6cxykp6rd";
|
||||
sha256 = "1503v76w7543snqyjxykiqa5va62zb0ccn3jlw0gpdx8973v80mr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja python3 pkgconfig gobject-introspection gtk-doc shared-mime-info docbook_xsl docbook_xml_dtd_43 ];
|
||||
patches = [
|
||||
# Fix installed tests
|
||||
# https://github.com/hughsie/libxmlb/pull/2
|
||||
(fetchpatch {
|
||||
url = "https://github.com/hughsie/libxmlb/commit/78850c8b0f644f729fa21e2bf9ebed0d9d6010f3.diff";
|
||||
sha256 = "0zw7c6vy8hscln7za7ijqd9svirach3zdskvbzyxxcsm3xcwxpjm";
|
||||
})
|
||||
|
||||
buildInputs = [ glib libuuid ];
|
||||
./installed-tests-path.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
docbook_xml_dtd_43
|
||||
docbook_xsl
|
||||
gobject-introspection
|
||||
gtk-doc
|
||||
meson
|
||||
ninja
|
||||
pkgconfig
|
||||
(python3.withPackages (pkgs: with pkgs; [ setuptools ]))
|
||||
shared-mime-info
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
libuuid
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"--libexecdir=${placeholder "out"}/libexec"
|
||||
"-Dgtkdoc=true"
|
||||
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
|
||||
Reference in New Issue
Block a user