1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

whitesur-kde: unstable-2023-10-06 -> 2022-05-01-unstable-2024-08-07 (#336563)

This commit is contained in:
Sandro 2024-08-28 09:58:58 +02:00 committed by GitHub
commit b43ec5f8ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 19 deletions

View file

@ -1,57 +1,59 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, kdeclarative
, plasma-framework
, plasma-workspace
, gitUpdater
, plasma-desktop
, qtsvg
, unstableGitUpdater
}:
stdenvNoCC.mkDerivation {
pname = "whitesur-kde";
version = "unstable-2023-10-06";
version = "2022-05-01-unstable-2024-08-07";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = "whitesur-kde";
rev = "2b4bcc76168bd8a4a7601188e177fa0ab485cdc8";
hash = "sha256-+Iooj8a7zfLhEWnjLEVoe/ebD9Vew5HZdz0wpWVZxA8=";
rev = "a5c704224069a9e10fce82eec3c4ba482924d7ef";
hash = "sha256-GGrddhmYOp2qm1rHyBnSjQIyw0pU7CNJhxUt6da8ZpQ=";
};
# 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
plasma-desktop
qtsvg
];
postPatch = ''
patchShebangs install.sh
patchShebangs install.sh sddm/install.sh
substituteInPlace install.sh \
--replace '$HOME/.config' $out/share \
--replace '$HOME/.local' $out \
--replace '"$HOME"/.Xresources' $out/doc/.Xresources
--replace-fail '[ "$UID" -eq "$ROOT_UID" ]' true \
--replace-fail /usr $out \
--replace-fail '"$HOME"/.Xresources' $out/doc/.Xresources
substituteInPlace sddm/install.sh \
--replace-fail '[ "$UID" -eq "$ROOT_UID" ]' true \
--replace-fail /usr $out \
--replace-fail 'REO_DIR="$(cd $(dirname $0) && pwd)"' 'REO_DIR=sddm'
substituteInPlace sddm/*/Main.qml \
--replace /usr $out
--replace-fail /usr $out
'';
installPhase = ''
runHook preInstall
mkdir -p $out/doc
name= ./install.sh
mkdir -p $out/share/sddm/themes
cp -a sddm/WhiteSur $out/share/sddm/themes/
sddm/install.sh
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "MacOS big sur like theme for KDE Plasma desktop";

View file

@ -28571,7 +28571,7 @@ with pkgs;
whitesur-icon-theme = callPackage ../data/icons/whitesur-icon-theme { };
whitesur-kde = libsForQt5.callPackage ../data/themes/whitesur-kde { };
whitesur-kde = kdePackages.callPackage ../data/themes/whitesur-kde { };
wireless-regdb = callPackage ../data/misc/wireless-regdb { };