gio-qt/nix/package.nix

40 lines
801 B
Nix
Raw Normal View History

2024-04-09 13:54:22 +02:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, glibmm
, doxygen
, qt6
, buildDocs ? true
}:
stdenv.mkDerivation rec {
pname = "gio-qt6";
version = "0.1.0";
src = lib.cleanSource ../.;
nativeBuildInputs = [
cmake
pkg-config
qt6.wrapQtAppsHook
] ++ lib.optionals buildDocs [ doxygen qt6.qttools.dev ];
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DPROJECT_VERSION=${version}"
"-DBUILD_DOCS=OFF"
] ++ lib.optionals (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
propagatedBuildInputs = [ glibmm ];
meta = with lib; {
description = "Gio wrapper for Qt6 applications";
homepage = "https://git.grimmauld.de/Grimmauld/gio-qt";
license = licenses.lgpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [grimmauld];
};
}