Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 qmake,
6 wrapQtAppsHook,
7 qtbase,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "nemo-qml-plugin-dbus";
12 version = "2.1.24";
13
14 src = fetchFromGitLab {
15 domain = "git.sailfishos.org";
16 owner = "mer-core";
17 repo = "nemo-qml-plugin-dbus";
18 rev = version;
19 sha256 = "1ilg929456d3k0xkvxa5r4k7i4kkw9i8kgah5xx1yq0d9wka0l77";
20 };
21
22 nativeBuildInputs = [
23 qmake
24 wrapQtAppsHook
25 ];
26
27 postPatch = ''
28 substituteInPlace dbus.pro --replace ' tests' ""
29 substituteInPlace src/nemo-dbus/nemo-dbus.pro \
30 --replace /usr $out \
31 --replace '$$[QT_INSTALL_LIBS]' $out'/lib'
32 substituteInPlace src/plugin/plugin.pro \
33 --replace '$$[QT_INSTALL_QML]' $out'/${qtbase.qtQmlPrefix}'
34 '';
35
36 meta = {
37 description = "Nemo DBus plugin for qml";
38 homepage = "https://git.sailfishos.org/mer-core/nemo-qml-plugin-dbus/";
39 license = lib.licenses.lgpl2Only;
40 maintainers = [ lib.maintainers.Thra11 ];
41 platforms = lib.platforms.linux;
42 };
43}