Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "libmaxminddb"; 5 version = "1.7.1"; 6 7 src = fetchurl { 8 url = meta.homepage + "/releases/download/${version}/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-6EFPDe3Oy8H2wxy2XNgWUJUqsGd6TYxJyrYDs7j7CD4="; 10 }; 11 12 meta = with lib; { 13 description = "C library for working with MaxMind geolocation DB files"; 14 homepage = "https://github.com/maxmind/libmaxminddb"; 15 license = licenses.asl20; 16 maintainers = [ maintainers.ajs124 ]; 17 mainProgram = "mmdblookup"; 18 platforms = platforms.all; 19 }; 20}