2022-07-20 14:08:28 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
2023-11-02 00:00:27 +00:00
|
|
|
, kdeclarative
|
|
|
|
, plasma-framework
|
|
|
|
, plasma-workspace
|
2022-07-20 14:08:28 +00:00
|
|
|
, gitUpdater
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "qogir-kde";
|
2023-11-02 00:00:27 +00:00
|
|
|
version = "unstable-2023-10-20";
|
2022-07-20 14:08:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
2023-11-02 00:00:27 +00:00
|
|
|
rev = "1cfe8da54e6f76d5ce0d2234dcb4f5186431edb3";
|
|
|
|
hash = "sha256-Ts8cS7dH8RkfRgWvzDKLCC2G6Hsnvx0NAGstfxMIt+Y=";
|
2022-07-20 14:08:28 +00:00
|
|
|
};
|
|
|
|
|
2023-11-02 00:00:27 +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-07-20 14:08:28 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs install.sh
|
|
|
|
|
|
|
|
substituteInPlace install.sh \
|
|
|
|
--replace '$HOME/.local' $out \
|
|
|
|
--replace '$HOME/.config' $out/share
|
2023-11-02 00:00:27 +00:00
|
|
|
|
|
|
|
substituteInPlace sddm/*/Main.qml \
|
|
|
|
--replace /usr $out
|
2022-07-20 14:08:28 +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-09-27 21:12:05 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-07-20 14:08:28 +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 ];
|
|
|
|
};
|
|
|
|
}
|