summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/realwallpaper
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-05-02 19:09:47 +0200
committerlassulus <lassulus@lassul.us>2021-05-02 19:09:47 +0200
commit020154a8599142dae4f9ac838fe1657dbf0da8d3 (patch)
tree4be7ee35f6784c8dee819e992bf4f7066f1d771b /krebs/5pkgs/simple/realwallpaper
parentfd3dff19ed4952a6a92cb3ebf40e52c7ba81d563 (diff)
realwallpaper: add krebs-stars-berlin version
Diffstat (limited to 'krebs/5pkgs/simple/realwallpaper')
-rw-r--r--krebs/5pkgs/simple/realwallpaper/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/realwallpaper/default.nix b/krebs/5pkgs/simple/realwallpaper/default.nix
index c9b2e76b6..8728c0ae7 100644
--- a/krebs/5pkgs/simple/realwallpaper/default.nix
+++ b/krebs/5pkgs/simple/realwallpaper/default.nix
@@ -297,6 +297,26 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
shade=15
''}
+ xplanet --num_times 1 --geometry $xplanet_out_size \
+ --latitude 52.520008 --longitude 13.404954 \
+ --output xplanet-krebs-stars-berlin-output.png --projection merc \
+ -config ${pkgs.writeText "xplanet-krebs-stars.config" ''
+ [default]
+
+ arc_thickness=1
+ arc_file=constellations.arcs
+
+ [earth]
+ "Earth"
+ map=daymap-final.png
+ night_map=nightmap-final.png
+ cloud_map=clouds.png
+ cloud_threshold=1
+ cloud_gamma=10
+ marker_file=marker_file
+ shade=15
+ ''}
+
# trim xplanet output
if needs_rebuild realwallpaper.png xplanet-output.png; then
convert xplanet-output.png -crop $out_geometry \
@@ -323,6 +343,12 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
realwallpaper-krebs-stars-tmp.png
mv realwallpaper-krebs-stars-tmp.png realwallpaper-krebs-stars.png
fi
+
+ if needs_rebuild realwallpaper-krebs-stars-berlin.png xplanet-krebs-stars-berlin-output.png; then
+ convert xplanet-krebs-stars-berlin-output.png -crop $out_geometry \
+ realwallpaper-krebs-stars-berlin-tmp.png
+ mv realwallpaper-krebs-stars-berlin-tmp.png realwallpaper-krebs-stars-berlin.png
+ fi
}
main "$@"