nix-config/packages/stylix-background.nix
Donovan Glover 6116425dea
meta: Move stylix-background to separate package
Long-term this won't be necessary once backgrounds become optional in
stylix.
2024-08-29 01:24:01 -04:00

20 lines
303 B
Nix

{
stdenvNoCC,
imagemagick,
color ? "181818",
}:
stdenvNoCC.mkDerivation {
pname = "stylix-background";
version = "1.0.0-${color}";
dontUnpack = true;
nativeBuildInputs = [ imagemagick ];
postInstall = ''
mkdir -p $out
magick -size 1x1 xc:#${color} $out/wallpaper.png
'';
}