From 05cc4b81bb2a2571ff4486fe9149f465a2b54c0e Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 11 Apr 2020 17:07:30 +0200 Subject: realwallpaper: check_type via needs_rebuild --- krebs/5pkgs/simple/realwallpaper/default.nix | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'krebs') diff --git a/krebs/5pkgs/simple/realwallpaper/default.nix b/krebs/5pkgs/simple/realwallpaper/default.nix index 2b0f4bd5..c511458f 100644 --- a/krebs/5pkgs/simple/realwallpaper/default.nix +++ b/krebs/5pkgs/simple/realwallpaper/default.nix @@ -52,9 +52,11 @@ pkgs.writers.writeDashBin "generate-wallpaper" '' else result=1 for b; do - if test "$b" -nt "$a"; then - #echo " $b is newer than $a" >&2 - result=0 + if check_type "$b" image; then + if test "$b" -nt "$a"; then + #echo " $b is newer than $a" >&2 + result=0 + fi fi done fi @@ -116,25 +118,6 @@ pkgs.writers.writeDashBin "generate-wallpaper" '' ${pkgs.nomads-cloud}/bin/nomads-cloud clouds-raw.png fi - check_type sun-raw.jpg image - check_type nightmap-raw.jpg image - check_type daymap-raw.tif image - check_type ice-raw.jpg image - check_type snow-raw.jpg image - check_type chlora-raw.jpg image - check_type fire-raw.jpg image - check_type clouds-raw.png image - - check_type mercury-raw.svg image - check_type venus-raw.svg image - check_type mars-raw.svg image - check_type jupiter-raw.svg image - check_type saturn-raw.svg image - check_type uranus-raw.svg image - check_type neptune-raw.svg image - - check_type krebs-raw.svg image - in_size=3600x1800 xplanet_out_size=3200x2500 out_geometry=3200x1800+0+350 -- cgit v1.2.3