diff options
Diffstat (limited to 'nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix')
-rw-r--r-- | nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix b/nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix new file mode 100644 index 000000000000..264575b019d8 --- /dev/null +++ b/nixpkgs/pkgs/desktops/lxqt/lxqt-qtplugin/default.nix @@ -0,0 +1,56 @@ +{ lib +, mkDerivation +, fetchFromGitHub +, cmake +, libdbusmenu +, libfm-qt +, libqtxdg +, lxqt-build-tools +, gitUpdater +, qtbase +, qtsvg +, qttools +, qtx11extras +}: + +mkDerivation rec { + pname = "lxqt-qtplugin"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "lxqt"; + repo = pname; + rev = version; + hash = "sha256-0shNkM1AGAjzMQDGLOIP2DFx6goJGoD0U0Gr+rRRFrk="; + }; + + nativeBuildInputs = [ + cmake + lxqt-build-tools + qttools + ]; + + buildInputs = [ + libdbusmenu + libfm-qt + libqtxdg + qtbase + qtsvg + qtx11extras + ]; + + postPatch = '' + substituteInPlace src/CMakeLists.txt \ + --replace "DESTINATION \"\''${QT_PLUGINS_DIR}" "DESTINATION \"$qtPluginPrefix" + ''; + + passthru.updateScript = gitUpdater { }; + + meta = with lib; { + homepage = "https://github.com/lxqt/lxqt-qtplugin"; + description = "LXQt Qt platform integration plugin"; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = teams.lxqt.members; + }; +} |