{ buildPgrxExtension, cargo-pgrx_0_12_6, fetchFromGitHub, lib, nix-update-script, postgresql, }: buildPgrxExtension (finalAttrs: { inherit postgresql; cargo-pgrx = cargo-pgrx_0_12_6; pname = "pg_graphql"; version = "1.5.12"; src = fetchFromGitHub { owner = "supabase"; repo = "pg_graphql"; # ToDo: 1.5.12 has not been tagged yet, hence `rev` is used instead for now #tag = "v${finalAttrs.version}"; rev = "62cd075863dcf9c34124776465be616517e8d8d8"; hash = "sha256-dnKsu3rRj+mV7vKhdY8zx79rAisPzJ7d6ulQ8gOCk8Q="; }; cargoHash = "sha256-RNDCFsCDsZ9bZ4D9mzZ8BX+JYZggxzxPceg4FdPLR+4="; # pgrx tests try to install the extension into postgresql nix store doCheck = false; passthru = { updateScript = nix-update-script { }; }; meta = { description = "GraphQL support for PostgreSQL"; homepage = "https://supabase.github.io/pg_graphql"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ julm ]; }; })