at 18.09-beta 55 lines 1.5 kB view raw
1{ stdenv, fetchFromGitHub, substituteAll, pkgconfig, gettext, gtk3, glib 2, gtk-doc, libarchive, gobjectIntrospection, libxslt, pngquant 3, sqlite, libsoup, attr, acl, docbook_xsl, docbook_xml_dtd_42 4, libuuid, json-glib, meson, gperf, ninja 5}: 6stdenv.mkDerivation rec { 7 name = "appstream-glib-0.7.10"; 8 9 outputs = [ "out" "dev" "man" "installedTests" ]; 10 outputBin = "dev"; 11 12 src = fetchFromGitHub { 13 owner = "hughsie"; 14 repo = "appstream-glib"; 15 rev = stdenv.lib.replaceStrings ["." "-"] ["_" "_"] name; 16 sha256 = "1m4gww09id7hwzh4hri1y3hp7p0mdrf6fk9f924r2w66hlsdil0d"; 17 }; 18 19 nativeBuildInputs = [ 20 meson pkgconfig ninja gtk-doc libxslt docbook_xsl docbook_xml_dtd_42 21 ]; 22 buildInputs = [ 23 glib gettext sqlite libsoup 24 attr acl libuuid json-glib 25 libarchive gobjectIntrospection gperf 26 ]; 27 propagatedBuildInputs = [ gtk3 ]; 28 29 patches = [ 30 (substituteAll { 31 src = ./paths.patch; 32 pngquant= "${pngquant}/bin/pngquant"; 33 }) 34 ]; 35 36 mesonFlags = [ 37 "-Drpm=false" 38 "-Dstemmer=false" 39 "-Ddep11=false" 40 ]; 41 42 doCheck = false; # fails at least 1 test 43 44 postInstall = '' 45 moveToOutput "share/installed-tests" "$installedTests" 46 ''; 47 48 meta = with stdenv.lib; { 49 description = "Objects and helper methods to read and write AppStream metadata"; 50 homepage = https://people.freedesktop.org/~hughsient/appstream-glib/; 51 license = licenses.lgpl2Plus; 52 platforms = platforms.linux; 53 maintainers = with maintainers; [ lethalman matthewbauer ]; 54 }; 55}