forked from mirrors/nixpkgs
0be5e322de
Removed impurities automatically added to listings derived from both `XDG_CONFIG_DIRS` and `XDG_DATA_DIRS` that refers to hardcoded paths. This shoud allow us to use `kbuildsycoca4` tool at build time, generating identical builds of the database independent on the distribution nix is based on. Tests: - Built as part of digikam package which make use of this syscoca builder tool at build time to generate an immutable database. Everything still run fine.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ kdeApp, attica, attr, automoc4, avahi, bison, cmake
|
|
, docbook_xml_dtd_42, docbook_xsl, flex, giflib, herqq, ilmbase
|
|
, libdbusmenu_qt, libjpeg, libxml2, libxslt, perl, phonon, pkgconfig
|
|
, polkit_qt4, qca2, qt4, shared_desktop_ontologies, shared_mime_info
|
|
, soprano, strigi, udev, xz
|
|
, lib
|
|
}:
|
|
|
|
kdeApp {
|
|
name = "kdelibs";
|
|
|
|
buildInputs = [
|
|
attica attr avahi giflib herqq libdbusmenu_qt libjpeg libxml2
|
|
polkit_qt4 qca2 shared_desktop_ontologies udev xz
|
|
];
|
|
propagatedBuildInputs = [ qt4 soprano phonon strigi ];
|
|
nativeBuildInputs = [
|
|
automoc4 bison cmake flex libxslt perl pkgconfig shared_mime_info
|
|
];
|
|
|
|
patches = [
|
|
./0001-old-kde4-cmake-policies.patch
|
|
./0002-polkit-install-path.patch
|
|
./0003-remove_xdg_impurities.patch
|
|
];
|
|
|
|
# cmake does not detect path to `ilmbase`
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
|
|
|
|
cmakeFlags = [
|
|
"-DDOCBOOKXML_CURRENTDTD_DIR=${docbook_xml_dtd_42}/xml/dtd/docbook"
|
|
"-DDOCBOOKXSL_DIR=${docbook_xsl}/xml/xsl/docbook"
|
|
"-DHUPNP_ENABLED=ON"
|
|
"-DWITH_SOLID_UDISKS2=ON"
|
|
"-DKDE_DEFAULT_HOME=.kde"
|
|
];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = {
|
|
licenses = with lib.licenses; [ gpl2 fdl12 lgpl21 ];
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
};
|
|
}
|