2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, substituteAll
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, docbook_xsl
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gperf
|
|
|
|
, gtk-doc
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libarchive
|
2022-10-21 18:38:19 +00:00
|
|
|
, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, libuuid
|
|
|
|
, libxslt
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, pngquant
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "appstream-glib";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" "installedTests" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "appstream-glib";
|
2021-08-22 07:53:02 +00:00
|
|
|
rev = "${lib.replaceStrings ["-"] ["_"] pname}_${lib.replaceStrings ["."] ["_"] version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "Qf0z9YTfjTiEr9OlK2BgOpVDtM2ozsiyjzO04O81zas=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
docbook_xsl
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gperf
|
|
|
|
gtk-doc
|
|
|
|
libxslt
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libarchive
|
2022-10-21 18:38:19 +00:00
|
|
|
curl
|
2020-04-24 23:36:52 +00:00
|
|
|
libuuid
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gdk-pixbuf
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths.patch;
|
|
|
|
pngquant = "${pngquant}/bin/pngquant";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Drpm=false"
|
|
|
|
"-Dstemmer=false"
|
|
|
|
"-Ddep11=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # fails at least 1 test
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "share/installed-tests" "$installedTests"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Objects and helper methods to read and write AppStream metadata";
|
|
|
|
homepage = "https://people.freedesktop.org/~hughsient/appstream-glib/";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|