mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
35 lines
788 B
Nix
35 lines
788 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
postgresqlTestExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
|
pname = "ip4r";
|
|
version = "2.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RhodiumToad";
|
|
repo = "ip4r";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-IWGVHd9uc7pCRZL9FMTwSs50rkRwXafjB3Vq72qAonA=";
|
|
};
|
|
|
|
passthru.tests = {
|
|
extension = postgresqlTestExtension {
|
|
inherit (finalAttrs) finalPackage;
|
|
sql = "CREATE EXTENSION ip4r;";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "IPv4/v6 and IPv4/v6 range index type for PostgreSQL";
|
|
homepage = "https://github.com/RhodiumToad/ip4r";
|
|
license = lib.licenses.postgresql;
|
|
maintainers = with lib.maintainers; [ lukegb ];
|
|
inherit (postgresql.meta) platforms;
|
|
};
|
|
})
|