postgresqlPackages.plpgsql_check: init at 1.13.1

This commit is contained in:
Mario Rodas 2020-08-17 04:20:00 -05:00
parent eb87f723bb
commit 2021a4b870
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, postgresql }:
stdenv.mkDerivation rec {
pname = "plpgsql_check";
version = "1.13.1";
src = fetchFromGitHub {
owner = "okbob";
repo = pname;
rev = "v${version}";
sha256 = "19vcvfhxh0922qgibahmkyf7czniycqbzccxdw65j1ia7fd8yyc3";
};
buildInputs = [ postgresql ];
installPhase = ''
install -D -t $out/lib *.so
install -D -t $out/share/postgresql/extension *.sql
install -D -t $out/share/postgresql/extension *.control
'';
meta = with stdenv.lib; {
description = "Linter tool for language PL/pgSQL";
homepage = "https://github.com/okbob/plpgsql_check";
platforms = postgresql.meta.platforms;
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}

View File

@ -21,6 +21,8 @@ self: super: {
pgroonga = super.callPackage ./ext/pgroonga.nix { };
plpgsql_check = super.callPackage ./ext/plpgsql_check.nix { };
plv8 = super.callPackage ./ext/plv8.nix {
v8 = super.callPackage ../../../development/libraries/v8/plv8_6_x.nix {
python = self.python2;