14 bottomColor ? "black",
28 if (logoFile != null && logoName == null) then
29 lib.strings.removeSuffix ".png" (baseNameOf (toString logoFile))
33 assert lib.asserts.assertOneOf "topColor" topColor validColors;
34 assert lib.asserts.assertOneOf "bottomColor" bottomColor validColors;
36 pname = "breeze-plymouth";
38 # FIXME(later): discuss with upstream
39 patches = [ ./install-paths.patch ];
41 extraNativeBuildInputs =
43 ++ lib.optionals (logoFile != null) [
48 extraBuildInputs = [ plymouth ];
52 ++ lib.optional (osName != null) "-DDISTRO_NAME=${osName}"
53 ++ lib.optional (osVersion != null) "-DDISTRO_VERSION=${osVersion}"
54 ++ lib.optional (logoName != null) "-DDISTRO_LOGO=${logoName}"
55 ++ lib.optional (topColor != null) "-DBACKGROUND_TOP_COLOR=${topColor}"
56 ++ lib.optional (bottomColor != null) "-DBACKGROUND_BOTTOM_COLOR=${bottomColor}";
60 substituteInPlace cmake/FindPlymouth.cmake --subst-var out
62 + lib.optionalString (logoFile != null) ''
63 cp ${logoFile} breeze/images/${resolvedLogoName}.logo.png
65 # conversion for 16bit taken from the breeze-plymouth readme
66 convert ${logoFile} -alpha Background -background "#000000" -fill "#000000" -flatten tmp.png
67 pngtopnm tmp.png | pnmquant 16 | pnmtopng > breeze/images/16bit/${resolvedLogoName}.logo.png