Commit 2ff27bb7 authored by José Romildo's avatar José Romildo
Browse files

whitesur-kde: propagate sddm theme dependencies to user env

parent 2edb7f2e
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
{ lib
, stdenvNoCC
, fetchFromGitHub
, kdeclarative
, plasma-framework
, plasma-workspace
, gitUpdater
}:

@@ -15,6 +18,14 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    hash = "sha256-+Iooj8a7zfLhEWnjLEVoe/ebD9Vew5HZdz0wpWVZxA8=";
  };

  # Propagate sddm theme dependencies to user env otherwise sddm does
  # not find them. Putting them in buildInputs is not enough.
  propagatedUserEnvPkgs = [
    kdeclarative.bin
    plasma-framework
    plasma-workspace
  ];

  postPatch = ''
    patchShebangs install.sh

@@ -22,6 +33,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
      --replace '$HOME/.config' $out/share \
      --replace '$HOME/.local' $out \
      --replace '"$HOME"/.Xresources' $out/doc/.Xresources

    substituteInPlace sddm/*/Main.qml \
      --replace /usr $out
  '';

  installPhase = ''
+3 −1
Original line number Diff line number Diff line
@@ -30213,7 +30213,9 @@ with pkgs;
  whitesur-icon-theme = callPackage ../data/icons/whitesur-icon-theme { };
  whitesur-kde = callPackage ../data/themes/whitesur-kde { };
  whitesur-kde = callPackage ../data/themes/whitesur-kde {
    inherit (libsForQt5) kdeclarative plasma-framework plasma-workspace;
  };
  wireless-regdb = callPackage ../data/misc/wireless-regdb { };