Skip to content

Commit

Permalink
Merge pull request #95783 from marsam/init-plpgsql_check
Browse files Browse the repository at this point in the history
postgresqlPackages.plpgsql_check: init at 1.13.1
  • Loading branch information
marsam authored Aug 20, 2020
2 parents bfa6a90 + 2021a4b commit a3d53c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/servers/sql/postgresql/ext/plpgsql_check.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/servers/sql/postgresql/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a3d53c5

Please sign in to comment.