Merge pull request #264413 from romildo/upd.colloid-kde

colloid-kde: unstable-2022-07-13 -> unstable-2023-07-04
This commit is contained in:
José Romildo Malaquias 2023-11-22 07:15:25 -03:00 committed by GitHub
commit dd509de23e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 4 deletions

View File

@ -1,26 +1,45 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, kdeclarative
, plasma-framework
, plasma-workspace
, gitUpdater
}:
stdenvNoCC.mkDerivation rec {
pname = "colloid-kde";
version = "unstable-2022-07-13";
version = "unstable-2023-07-04";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = "eaf6844e997aa60c755af7ea560ffba798e72ff5";
hash = "sha256-FNTG5aVvTWHqNVVR23LFG/ykPtXRD7oH5C6eyWaqc60=";
rev = "0b79befdad9b442b5a8287342c4b7e47ff87d555";
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
'';

View File

@ -29153,7 +29153,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 { };