mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +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
|
||
|
'';
|
||
|
}
|