2019-07-05 16:42:08 +01:00
|
|
|
{ stdenv, fetchbzr, pkgconfig
|
|
|
|
, qmake, qtbase, qtdeclarative, wrapQtAppsHook
|
|
|
|
, glib, gobject-introspection
|
|
|
|
}:
|
2018-03-05 01:57:22 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gsettings-qt";
|
2018-03-05 01:57:22 +00:00
|
|
|
version = "0.1.20170824";
|
|
|
|
|
|
|
|
src = fetchbzr {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://bazaar.launchpad.net/~system-settings-touch/gsettings-qt/trunk";
|
2018-03-05 01:57:22 +00:00
|
|
|
rev = "85";
|
|
|
|
sha256 = "1kcw0fgdyndx9c0dyha11wkj0gi05spdc1adf1609mrinbb4rnyi";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2019-07-05 16:42:08 +01:00
|
|
|
wrapQtAppsHook
|
2018-03-05 01:57:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
qtdeclarative
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
# force ordered build of subdirs
|
|
|
|
sed -i -e "\$aCONFIG += ordered" gsettings-qt.pro
|
|
|
|
|
|
|
|
# It seems that there is a bug in qtdeclarative: qmlplugindump fails
|
|
|
|
# because it can not find or load the Qt platform plugin "minimal".
|
|
|
|
# A workaround is to set QT_PLUGIN_PATH and QML2_IMPORT_PATH explicitly.
|
|
|
|
export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
|
|
|
|
export QML2_IMPORT_PATH=${qtdeclarative.bin}/${qtbase.qtQmlPrefix}
|
|
|
|
|
|
|
|
substituteInPlace GSettings/gsettings-qt.pro \
|
|
|
|
--replace '$$[QT_INSTALL_QML]' "$out/$qtQmlPrefix" \
|
|
|
|
--replace '$$[QT_INSTALL_BINS]/qmlplugindump' "qmlplugindump"
|
|
|
|
|
|
|
|
substituteInPlace src/gsettings-qt.pro \
|
|
|
|
--replace '$$[QT_INSTALL_LIBS]' "$out/lib" \
|
|
|
|
--replace '$$[QT_INSTALL_HEADERS]' "$out/include"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
# do not install tests
|
|
|
|
for f in tests/Makefile{,.cpptest}; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "install: install_target" "install: "
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt/QML bindings for GSettings";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/gsettings-qt";
|
2018-03-05 01:57:22 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|