reaktor2: update to fix caching, center on 18@p-corner
This commit is contained in:
parent
7e40e32e43
commit
095eadf772
@ -87,14 +87,15 @@ let
|
|||||||
osm-restaurants-src = pkgs.fetchFromGitHub {
|
osm-restaurants-src = pkgs.fetchFromGitHub {
|
||||||
owner = "kmein";
|
owner = "kmein";
|
||||||
repo = "scripts";
|
repo = "scripts";
|
||||||
rev = "c7a1256040c7a32ef4fd700e057bb4135a19791f";
|
rev = "66b2068d548d3418c81dd093bba3f80248c68196";
|
||||||
sha256 = "1f1cmm6wafsaii4mas1d9fishczmi6f6whkz3b1bh6jxmalwgka8";
|
sha256 = "059sp2lz54iwklswaxv9w703sbm2vv7p0ccig10gsqshriq6v58z";
|
||||||
};
|
};
|
||||||
osm-restaurants = pkgs.callPackage "${osm-restaurants-src}/osm-restaurants" {};
|
osm-restaurants = pkgs.callPackage "${osm-restaurants-src}/osm-restaurants" {};
|
||||||
in pkgs.writeDash "krebsfood" ''
|
in pkgs.writeDash "krebsfood" ''
|
||||||
set -efu
|
set -efu
|
||||||
c_base=260050809
|
ecke_lat=52.51252
|
||||||
${osm-restaurants}/bin/osm-restaurants --radius 500 --center "$c_base" \
|
ecke_lon=13.41740
|
||||||
|
${osm-restaurants}/bin/osm-restaurants --radius 500 --latitude "$ecke_lat" --longitude "$ecke_lon" \
|
||||||
| ${pkgs.jq}/bin/jq -r '"How about \(.tags.name) (https://www.openstreetmap.org/\(.type)/\(.id)), open \(.tags.opening_hours)?"'
|
| ${pkgs.jq}/bin/jq -r '"How about \(.tags.name) (https://www.openstreetmap.org/\(.type)/\(.id)), open \(.tags.opening_hours)?"'
|
||||||
'
|
'
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user