20 , gobject-introspection
29 stdenv.mkDerivation rec {
33 outputs = [ "out" "dev" "installedTests" ];
35 src = fetchFromGitHub {
39 sha256 = "sha256-KVZCtu1w5FMgXZMiSW55rbrI6W/A9zWWKKvACtk/jjk=";
45 src = ./fix-paths.patch;
46 libstemmer_includedir = "${lib.getDev libstemmer}/include";
49 # Allow installing installed tests to a separate output.
50 ./installed-tests-path.patch
72 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
91 "-Dinstalled_test_prefix=${placeholder "installedTests"}"
96 installed-tests = nixosTests.installed-tests.appstream;
101 description = "Software metadata handling library";
103 AppStream is a cross-distro effort for building Software-Center applications
104 and enhancing metadata provided by software components. It provides
105 specifications for meta-information which is shipped by upstream projects and
106 can be consumed by other software.
108 homepage = "https://www.freedesktop.org/wiki/Distributions/AppStream/";
109 license = licenses.lgpl21Plus;
110 mainProgram = "appstreamcli";
111 platforms = platforms.unix;