29 lines
549 B
Nix
29 lines
549 B
Nix
{ lib, stdenv, imagemagick }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "atau-wallpapers";
|
|
pname = name;
|
|
version = "1.0.0";
|
|
|
|
buildInputs = [ imagemagick ];
|
|
|
|
src = ./assets;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/share/backgrounds/atau-wallpapers"
|
|
|
|
mogrify -format png *.*
|
|
mv * "$out/share/backgrounds/atau-wallpapers/"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A collection of wallpapers for me";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ atau ];
|
|
};
|
|
}
|