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