nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 33 lines 898 B view raw
1{ mkDerivation, appstream, qtbase, qttools, nixosTests }: 2 3# TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here 4 5mkDerivation { 6 pname = "appstream-qt"; 7 inherit (appstream) version src; 8 9 outputs = [ "out" "dev" "installedTests" ]; 10 11 buildInputs = appstream.buildInputs ++ [ appstream qtbase ]; 12 13 nativeBuildInputs = appstream.nativeBuildInputs ++ [ qttools ]; 14 15 mesonFlags = appstream.mesonFlags ++ [ "-Dqt=true" ]; 16 17 patches = appstream.patches; 18 19 postFixup = '' 20 sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \ 21 -e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@" 22 ''; 23 24 passthru = appstream.passthru // { 25 tests = { 26 installed-tests = nixosTests.installed-tests.appstream-qt; 27 }; 28 }; 29 30 meta = appstream.meta // { 31 description = "Software metadata handling library - Qt"; 32 }; 33}