opencellid: 0-unstable-2024-10-08 -> 0-unstable-2024-10-15
This commit is contained in:
@@ -11,15 +11,15 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opencellid";
|
||||
version = "0-unstable-2024-10-08";
|
||||
version = "0-unstable-2024-10-15";
|
||||
|
||||
src = fetchurl {
|
||||
# this is a live url. updated daily? the server seems to silently ignore unrecognized query parameters,
|
||||
# this is a live url. updated... weekly? 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=";
|
||||
hash = "sha256-OzI7dVuVYg61xDs5mQy0PmXirLEEzZz2W24Px2W95ks=";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
@@ -27,7 +27,11 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp cell_towers.csv $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = writeShellApplication {
|
||||
|
Reference in New Issue
Block a user