opencellid: 0-unstable-2024-06-20 -> 0-unstable-2024-10-07
This commit is contained in:
@@ -5,15 +5,17 @@
|
|||||||
, apiKey ? "pk.758ba60a9bf5fc060451153c3e2542dc"
|
, apiKey ? "pk.758ba60a9bf5fc060451153c3e2542dc"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "opencellid";
|
pname = "opencellid";
|
||||||
version = "0-unstable-2024-06-20";
|
version = "0-unstable-2024-10-07";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# this is a live url. updated daily? TODO: add an update script for this.
|
# this is a live url. updated daily? the server seems to silently ignore unrecognized query parameters,
|
||||||
# the API key should allow for at least 2 downloads per day
|
# so i append a version tag such that bumping it forces nix to re-fetch the data.
|
||||||
url = "https://opencellid.org/ocid/downloads?token=${apiKey}&type=full&file=cell_towers.csv.gz";
|
# the API key should allow for at least 2 downloads per day (maybe more?)
|
||||||
hash = "sha256-nXWdHp6kYSJP6jOq056Po9YrNj8vDNY+uxQaKA7iA2A=";
|
# TODO: add an update script for this.
|
||||||
|
url = "https://opencellid.org/ocid/downloads?token=${apiKey}&type=full&file=cell_towers.csv.gz&_stamp=${version}";
|
||||||
|
hash = "sha256-ZfTUB3jxiFi1sPc3WBAVxrw92K4OMB4+iSw7x60+SuA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
|
Reference in New Issue
Block a user