depot/third_party/nixpkgs/pkgs/data/themes/qogir-kde/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

62 lines
1.4 KiB
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
, kdeclarative
, plasma-framework
, plasma-workspace
, unstableGitUpdater
}:
stdenvNoCC.mkDerivation rec {
pname = "qogir-kde";
version = "0-unstable-2024-09-21";
src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = "9f665cc10ded4fe0a3100c9151a5bd12d1ac50ca";
hash = "sha256-3WdDzOKO962RykLS8P4paxEiA1keGhuah/GhAKdsuhA=";
};
# 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/*/Main.qml \
--replace /usr $out
'';
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
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Flat Design theme for KDE Plasma desktop";
homepage = "https://github.com/vinceliuice/Qogir-kde";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = [ maintainers.romildo ];
};
}