mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 09:13:56 +00:00
28 lines
845 B
Nix
28 lines
845 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestExtension, buildPostgresqlExtension }:
|
|
|
|
buildPostgresqlExtension (finalAttrs: {
|
|
pname = "plpgsql-check";
|
|
version = "2.7.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "okbob";
|
|
repo = "plpgsql_check";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-sLakN4595z+Smt7oaK7IPIJZp/JIGwL5UB4OXQek7JU=";
|
|
};
|
|
|
|
passthru.tests.extension = postgresqlTestExtension {
|
|
inherit (finalAttrs) finalPackage;
|
|
sql = "CREATE EXTENSION plpgsql_check;";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Linter tool for language PL/pgSQL";
|
|
homepage = "https://github.com/okbob/plpgsql_check";
|
|
changelog = "https://github.com/okbob/plpgsql_check/releases/tag/v${finalAttrs.version}";
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
})
|