wallpapers: convert all to pngs
This commit is contained in:
parent
e3d37d19b7
commit
1e72f4b1e9
|
@ -1,16 +1,20 @@
|
||||||
{ lib, stdenv }:
|
{ lib, stdenv, imagemagick }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "atau-wallpapers";
|
name = "atau-wallpapers";
|
||||||
pname = name;
|
pname = name;
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
|
buildInputs = [ imagemagick ];
|
||||||
|
|
||||||
src = ./assets;
|
src = ./assets;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p "$out/share/backgrounds/atau-wallpapers"
|
mkdir -p "$out/share/backgrounds/atau-wallpapers"
|
||||||
|
|
||||||
|
mogrify -format png *.*
|
||||||
mv * "$out/share/backgrounds/atau-wallpapers/"
|
mv * "$out/share/backgrounds/atau-wallpapers/"
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
|
Loading…
Reference in New Issue