mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
b34e235b65
Diff: https://github.com/okbob/plpgsql_check/compare/v2.6.0...v2.6.1 Changelog: https://github.com/okbob/plpgsql_check/releases/tag/v2.6.1
32 lines
898 B
Nix
32 lines
898 B
Nix
{ lib, stdenv, fetchFromGitHub, postgresql }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "plpgsql_check";
|
|
version = "2.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "okbob";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-mC8cDLfTu/gpMjNfXGCAV8EhE+kMq2MofzibIWijX3w=";
|
|
};
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
installPhase = ''
|
|
install -D -t $out/lib *${postgresql.dlSuffix}
|
|
install -D -t $out/share/postgresql/extension *.sql
|
|
install -D -t $out/share/postgresql/extension *.control
|
|
'';
|
|
|
|
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${version}";
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.mit;
|
|
broken = versionOlder postgresql.version "12";
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|