sqlint: 0.1.10 -> 0.2.0

- Updates libpg_query to 2.0.0 in gem config, used by pg_query gem 2.0.1
- Continue to support older gem with older libpg_query, for gitlab
- Remove redundant gem config override in sqlint expression
- Add myself as a maintainer
This commit is contained in:
Steve Purcell
2021-04-02 00:28:17 -04:00
committed by tomberek
parent 54c1e44240
commit b092bdccfa
4 changed files with 34 additions and 29 deletions
+3 -20
View File
@@ -1,35 +1,18 @@
{ lib, bundlerApp, fetchurl, bundlerUpdateScript }:
{ lib, bundlerApp, bundlerUpdateScript }:
let
LIB_PG_QUERY_TAG = "10-1.0.1";
libpgQuerySrc = fetchurl {
name = "libpg_query.tar.gz";
url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/${LIB_PG_QUERY_TAG}";
sha256 = "0m5jv134hgw2vcfkqlnw80fr3wmrdvgrvk1ndcx9s44bzi5nsp47";
};
in bundlerApp {
bundlerApp {
pname = "sqlint";
gemdir = ./.;
exes = [ "sqlint" ];
gemConfig = {
pg_query = attrs: {
dontBuild = false;
postPatch = ''
substituteInPlace ext/pg_query/extconf.rb \
--replace "#{workdir}/libpg_query.tar.gz" "${libpgQuerySrc}"
'';
};
};
passthru.updateScript = bundlerUpdateScript "sqlint";
meta = with lib; {
description = "Simple SQL linter";
homepage = "https://github.com/purcell/sqlint";
license = licenses.mit;
maintainers = with maintainers; [ ariutta nicknovitski ];
maintainers = with maintainers; [ ariutta nicknovitski purcell ];
platforms = with platforms; [ "x86_64-linux" "x86_64-darwin" ];
};
}