Unverified Commit a9d0cd55 authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

kdePackages.qtstyleplugin-kvantum: nixfmt

parent 41278d29
Loading
Loading
Loading
Loading
+37 −31
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, qmake
, qtbase
, qtsvg
, qtx11extras ? null # Qt 5 only
, kwindowsystem
, qtwayland
, libX11
, libXext
, qttools
, wrapQtAppsHook
, gitUpdater
{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  qmake,
  qtbase,
  qtsvg,
  qtx11extras ? null, # Qt 5 only
  kwindowsystem,
  qtwayland,
  libX11,
  libXext,
  qttools,
  wrapQtAppsHook,
  gitUpdater,

, qt6Kvantum ? null
  qt6Kvantum ? null,
}:
let
  isQt5 = lib.versionOlder qtbase.version "6";
@@ -38,12 +39,14 @@ stdenv.mkDerivation (finalAttrs: {
    wrapQtAppsHook
  ];

  buildInputs = [
  buildInputs =
    [
      qtbase
      qtsvg
      libX11
      libXext
  ] ++ lib.optionals isQt5 [ qtx11extras ]
    ]
    ++ lib.optionals isQt5 [ qtx11extras ]
    ++ lib.optionals (!isQt5) [
      kwindowsystem
      qtwayland
@@ -80,11 +83,14 @@ stdenv.mkDerivation (finalAttrs: {
    rev-prefix = "V";
  };

  meta = with lib; {
  meta = {
    description = "SVG-based Qt5 theme engine plus a config tool and extra themes";
    homepage = "https://github.com/tsujan/Kvantum";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ romildo Scrumplex ];
    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [
      romildo
      Scrumplex
    ];
  };
})