@@ -1,35 +1,18 @@
1−{ lib, bundlerApp, fetchurl, bundlerUpdateScript }:
1+{ lib, bundlerApp, bundlerUpdateScript }:
22
3−let
4− LIB_PG_QUERY_TAG = "10-1.0.1";
5− libpgQuerySrc = fetchurl {
6− name = "libpg_query.tar.gz";
7− url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/${LIB_PG_QUERY_TAG}";
8− sha256 = "0m5jv134hgw2vcfkqlnw80fr3wmrdvgrvk1ndcx9s44bzi5nsp47";
9− };
10−in bundlerApp {
3+bundlerApp {
114 pname = "sqlint";
125 gemdir = ./.;
136
147 exes = [ "sqlint" ];
158
16− gemConfig = {
17− pg_query = attrs: {
18− dontBuild = false;
19− postPatch = ''
20− substituteInPlace ext/pg_query/extconf.rb \
21− --replace "#{workdir}/libpg_query.tar.gz" "${libpgQuerySrc}"
22− '';
23− };
24− };
25−
269 passthru.updateScript = bundlerUpdateScript "sqlint";
2710
2811 meta = with lib; {
2912 description = "Simple SQL linter";
3013 homepage = "https://github.com/purcell/sqlint";
3114 license = licenses.mit;
32− maintainers = with maintainers; [ ariutta nicknovitski ];
15+ maintainers = with maintainers; [ ariutta nicknovitski purcell ];
3316 platforms = with platforms; [ "x86_64-linux" "x86_64-darwin" ];
3417 };
3518}