mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-28 19:23:48 +01:00
20 lines
303 B
Nix
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
|
||
|
'';
|
||
|
}
|