summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/realwallpaper
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-04-11 17:07:30 +0200
committerlassulus <lassulus@lassul.us>2020-04-11 17:07:30 +0200
commit05cc4b81bb2a2571ff4486fe9149f465a2b54c0e (patch)
treea7c4c0b48e64278bcb720763064cceac1774714b /krebs/5pkgs/simple/realwallpaper
parent0cb8ab061a8aa5691e6fc78c8552c18ab035fe53 (diff)
realwallpaper: check_type via needs_rebuild
Diffstat (limited to 'krebs/5pkgs/simple/realwallpaper')
-rw-r--r--krebs/5pkgs/simple/realwallpaper/default.nix27
1 files changed, 5 insertions, 22 deletions
diff --git a/krebs/5pkgs/simple/realwallpaper/default.nix b/krebs/5pkgs/simple/realwallpaper/default.nix
index 2b0f4bd53..c511458f9 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