11 loginBackground ? false,
13 stdenvNoCC.mkDerivation rec {
14 pname = "catppuccin-sddm";
17 src = fetchFromGitHub {
21 hash = "sha256-SdpkuonPLgCgajW99AzJaR8uvdCPi4MdIxS5eB+Q9WQ=";
24 dontWrapQtApps = true;
30 propagatedBuildInputs = [
45 mkdir -p "$out/share/sddm/themes/"
46 cp -r dist/catppuccin-${flavor} "$out/share/sddm/themes/catppuccin-${flavor}"
48 configFile=$out/share/sddm/themes/catppuccin-${flavor}/theme.conf
50 substituteInPlace $configFile \
51 --replace-fail 'Font="Noto Sans"' 'Font="${font}"' \
52 --replace-fail 'FontSize=9' 'FontSize=${fontSize}'
54 ${lib.optionalString (background != null) ''
55 substituteInPlace $configFile \
56 --replace-fail 'Background="backgrounds/wall.jpg"' 'Background="${background}"' \
57 --replace-fail 'CustomBackground="false"' 'CustomBackground="true"'
60 ${lib.optionalString loginBackground ''
61 substituteInPlace $configFile \
62 --replace-fail 'LoginBackground="false"' 'LoginBackground="true"'
69 mkdir -p $out/nix-support
70 echo ${kdePackages.qtsvg} >> $out/nix-support/propagated-user-env-packages
74 description = "Soothing pastel theme for SDDM";
75 homepage = "https://github.com/catppuccin/sddm";
76 license = lib.licenses.mit;
77 maintainers = with lib.maintainers; [elysasrc];
78 platforms = lib.platforms.linux;