2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, kdeclarative
|
|
|
|
, plasma-framework
|
|
|
|
, plasma-workspace
|
2022-08-12 12:06:08 +00:00
|
|
|
, gitUpdater
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "qogir-kde";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "unstable-2023-10-20";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "1cfe8da54e6f76d5ce0d2234dcb4f5186431edb3";
|
|
|
|
hash = "sha256-Ts8cS7dH8RkfRgWvzDKLCC2G6Hsnvx0NAGstfxMIt+Y=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# 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
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs install.sh
|
|
|
|
|
|
|
|
substituteInPlace install.sh \
|
|
|
|
--replace '$HOME/.local' $out \
|
|
|
|
--replace '$HOME/.config' $out/share
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
substituteInPlace sddm/*/Main.qml \
|
|
|
|
--replace /usr $out
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/plasma/plasmoids
|
|
|
|
|
|
|
|
name= HOME="$TMPDIR" ./install.sh --dest $out/share/themes
|
|
|
|
|
|
|
|
mkdir -p $out/share/sddm/themes
|
|
|
|
cp -a sddm/Qogir $out/share/sddm/themes/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A flat Design theme for KDE Plasma desktop";
|
|
|
|
homepage = "https://github.com/vinceliuice/Qogir-kde";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|