mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nixosTests.installed-tests.appstream-qt: init
This commit is contained in:
parent
c942cd7b2e
commit
b3d4c1d48f
9
nixos/tests/installed-tests/appstream-qt.nix
Normal file
9
nixos/tests/installed-tests/appstream-qt.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ pkgs, makeInstalledTest, ... }:
|
||||
|
||||
makeInstalledTest {
|
||||
tested = pkgs.libsForQt5.appstream-qt;
|
||||
|
||||
testConfig = {
|
||||
appstream.enable = true;
|
||||
};
|
||||
}
|
@ -85,6 +85,7 @@ in
|
||||
|
||||
{
|
||||
appstream = callInstalledTest ./appstream.nix {};
|
||||
appstream-qt = callInstalledTest ./appstream-qt.nix {};
|
||||
colord = callInstalledTest ./colord.nix {};
|
||||
flatpak = callInstalledTest ./flatpak.nix {};
|
||||
flatpak-builder = callInstalledTest ./flatpak-builder.nix {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ mkDerivation, appstream, qtbase, qttools }:
|
||||
{ mkDerivation, appstream, qtbase, qttools, nixosTests }:
|
||||
|
||||
# TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here
|
||||
|
||||
@ -6,7 +6,7 @@ mkDerivation {
|
||||
pname = "appstream-qt";
|
||||
inherit (appstream) version src patches;
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
outputs = [ "out" "dev" "installedTests" ];
|
||||
|
||||
buildInputs = appstream.buildInputs ++ [ appstream qtbase ];
|
||||
|
||||
@ -19,6 +19,12 @@ mkDerivation {
|
||||
-e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@"
|
||||
'';
|
||||
|
||||
passthru = appstream.passthru // {
|
||||
tests = {
|
||||
installed-tests = nixosTests.installed-tests.appstream-qt;
|
||||
};
|
||||
};
|
||||
|
||||
meta = appstream.meta // {
|
||||
description = "Software metadata handling library - Qt";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user