2021-01-03 21:46:40 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libpostal";
|
2021-03-12 02:00:15 +01:00
|
|
|
version = "1.1";
|
2021-01-03 21:46:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openvenues";
|
|
|
|
repo = "libpostal";
|
|
|
|
rev = "v${version}";
|
2021-03-12 02:00:15 +01:00
|
|
|
sha256 = "sha256-gQTD2LQibaB2TK0SbzoILAljAGExURvDcF3C/TfDXqk=";
|
2021-01-03 21:46:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-data-download"
|
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "--disable-sse2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data";
|
|
|
|
homepage = "https://github.com/openvenues/libpostal";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.Thra11 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|