mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
9e4be53221
where a single bin is provided and someone might actually want to run it
29 lines
824 B
Nix
29 lines
824 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libpostal";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openvenues";
|
|
repo = "libpostal";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-gQTD2LQibaB2TK0SbzoILAljAGExURvDcF3C/TfDXqk=";
|
|
};
|
|
|
|
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 ];
|
|
mainProgram = "libpostal_data";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|