nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenvNoCC
3, fetchFromGitHub
4, gitUpdater
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "colloid-kde";
9 version = "unstable-2022-07-13";
10
11 src = fetchFromGitHub {
12 owner = "vinceliuice";
13 repo = pname;
14 rev = "eaf6844e997aa60c755af7ea560ffba798e72ff5";
15 hash = "sha256-FNTG5aVvTWHqNVVR23LFG/ykPtXRD7oH5C6eyWaqc60=";
16 };
17
18 postPatch = ''
19 patchShebangs install.sh
20
21 substituteInPlace install.sh \
22 --replace '$HOME/.local' $out \
23 --replace '$HOME/.config' $out/share
24 '';
25
26 installPhase = ''
27 runHook preInstall
28
29 mkdir -p $out/share/latte
30
31 name= HOME="$TMPDIR" \
32 ./install.sh --dest $out/share/themes
33
34 runHook postInstall
35 '';
36
37 passthru.updateScript = gitUpdater { };
38
39 meta = with lib; {
40 description = "A clean and concise theme for KDE Plasma desktop";
41 homepage = "https://github.com/vinceliuice/Colloid-kde-theme";
42 license = licenses.gpl3Only;
43 platforms = platforms.all;
44 maintainers = [ maintainers.romildo ];
45 };
46}