2020-12-28 19:45:28 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitLab, qmake, qtbase }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "nemo-qml-plugin-dbus";
|
2021-03-09 19:33:12 +00:00
|
|
|
version = "2.1.24";
|
2020-12-28 19:45:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "git.sailfishos.org";
|
|
|
|
owner = "mer-core";
|
|
|
|
repo = "nemo-qml-plugin-dbus";
|
|
|
|
rev = version;
|
2021-03-09 19:33:12 +00:00
|
|
|
sha256 = "1ilg929456d3k0xkvxa5r4k7i4kkw9i8kgah5xx1yq0d9wka0l77";
|
2020-12-28 19:45:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace dbus.pro --replace ' tests' ""
|
|
|
|
substituteInPlace src/nemo-dbus/nemo-dbus.pro \
|
|
|
|
--replace /usr $out \
|
|
|
|
--replace '$$[QT_INSTALL_LIBS]' $out'/lib'
|
|
|
|
substituteInPlace src/plugin/plugin.pro \
|
|
|
|
--replace '$$[QT_INSTALL_QML]' $out'/${qtbase.qtQmlPrefix}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nemo DBus plugin for qml";
|
|
|
|
homepage = "https://git.sailfishos.org/mer-core/nemo-qml-plugin-dbus/";
|
|
|
|
license = licenses.lgpl2Only;
|
|
|
|
maintainers = [ maintainers.Thra11 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|