Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "libpostal"; 5 version = "1.1"; 6 7 src = fetchFromGitHub { 8 owner = "openvenues"; 9 repo = "libpostal"; 10 rev = "v${version}"; 11 sha256 = "sha256-gQTD2LQibaB2TK0SbzoILAljAGExURvDcF3C/TfDXqk="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 configureFlags = [ 17 "--disable-data-download" 18 ] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "--disable-sse2" ]; 19 20 meta = with lib; { 21 description = "A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data"; 22 homepage = "https://github.com/openvenues/libpostal"; 23 license = licenses.mit; 24 maintainers = [ maintainers.Thra11 ]; 25 mainProgram = "libpostal_data"; 26 platforms = platforms.unix; 27 }; 28}