colloid-kde: install sddm theme

This commit is contained in:
José Romildo
2023-10-30 15:13:35 -03:00
parent 4b04ebcdf9
commit e2334f95f7
2 changed files with 26 additions and 1 deletions
+23
View File
@@ -1,6 +1,9 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, kdeclarative
, plasma-framework
, plasma-workspace
, gitUpdater
}:
@@ -15,12 +18,28 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-AYH9fW20/p+mq6lxR1lcCV1BQ/kgcsjHncpMvYWXnWA=";
};
# 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
substituteInPlace install.sh \
--replace '$HOME/.local' $out \
--replace '$HOME/.config' $out/share
substituteInPlace sddm/install.sh \
--replace /usr $out \
--replace '$(cd $(dirname $0) && pwd)' . \
--replace '"$UID" -eq "$ROOT_UID"' true
substituteInPlace sddm/Colloid/Main.qml \
--replace /usr $out
'';
installPhase = ''
@@ -31,6 +50,10 @@ stdenvNoCC.mkDerivation rec {
name= HOME="$TMPDIR" \
./install.sh --dest $out/share/themes
mkdir -p $out/share/sddm/themes
cd sddm
source install.sh
runHook postInstall
'';
+3 -1
View File
@@ -29160,7 +29160,9 @@ with pkgs;
comfortaa = callPackage ../data/fonts/comfortaa { };
colloid-kde = callPackage ../data/themes/colloid-kde { };
colloid-kde = callPackage ../data/themes/colloid-kde {
inherit (libsForQt5) kdeclarative plasma-framework plasma-workspace;
};
comic-mono = callPackage ../data/fonts/comic-mono { };