Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-04-02 06:05:30 +00:00 committed by GitHub
commit b719e2423f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 30 deletions

View File

@ -211,7 +211,16 @@ in
''; '';
}; };
pg_query = attrs: lib.optionalAttrs (attrs.version == "1.3.0") { pg_query = attrs: lib.optionalAttrs (attrs.version == "2.0.1") {
dontBuild = false;
postPatch = ''
sed -i "s;'https://codeload.github.com.*';'${fetchurl {
url = "https://codeload.github.com/lfittl/libpg_query/tar.gz/13-2.0.0";
sha256 = "0ghk0dlmrn634p3zjr41fy4ipgw8i44f67a4l8cspqg0395m3rp5";
}}';" ext/pg_query/extconf.rb
'';
} // lib.optionalAttrs (attrs.version == "1.3.0") {
# Needed for gitlab
dontBuild = false; dontBuild = false;
postPatch = '' postPatch = ''
sed -i "s;'https://codeload.github.com.*';'${fetchurl { sed -i "s;'https://codeload.github.com.*';'${fetchurl {

View File

@ -1,9 +1,11 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
pg_query (1.2.0) google-protobuf (3.15.6)
sqlint (0.1.10) pg_query (2.0.1)
pg_query (~> 1) google-protobuf (~> 3.15.5)
sqlint (0.2.0)
pg_query (~> 2)
PLATFORMS PLATFORMS
ruby ruby

View File

@ -1,35 +1,18 @@
{ lib, bundlerApp, fetchurl, bundlerUpdateScript }: { lib, bundlerApp, bundlerUpdateScript }:
let bundlerApp {
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 {
pname = "sqlint"; pname = "sqlint";
gemdir = ./.; gemdir = ./.;
exes = [ "sqlint" ]; 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"; passthru.updateScript = bundlerUpdateScript "sqlint";
meta = with lib; { meta = with lib; {
description = "Simple SQL linter"; description = "Simple SQL linter";
homepage = "https://github.com/purcell/sqlint"; homepage = "https://github.com/purcell/sqlint";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ariutta nicknovitski ]; maintainers = with maintainers; [ ariutta nicknovitski purcell ];
platforms = with platforms; [ "x86_64-linux" "x86_64-darwin" ]; platforms = with platforms; [ "x86_64-linux" "x86_64-darwin" ];
}; };
} }

View File

@ -1,13 +1,24 @@
{ {
pg_query = { google-protobuf = {
groups = ["default"]; groups = ["default"];
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0p9s6znavm6v5dwk1hxg9a8h2lrrwh9l0rlk0sy8cx4sq2mq82m1"; sha256 = "1ak5yqqhr04b4x0axzvpw1xzwmxmfcw0gf4r1ijixv15kidhsj3z";
type = "gem"; type = "gem";
}; };
version = "1.2.0"; version = "3.15.6";
};
pg_query = {
dependencies = ["google-protobuf"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "01a8asbgkr7f1gp50ikzr1zzmvwv50da389943hrrqzxwd202268";
type = "gem";
};
version = "2.0.1";
}; };
sqlint = { sqlint = {
dependencies = ["pg_query"]; dependencies = ["pg_query"];
@ -15,9 +26,9 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0ds7qsaqi745fda8nliy15is36l1bkfbfkr43q6smpy103xbk44c"; sha256 = "1ylicsc9x4vpj6ff3hmrm6iz1xswrwwgn1m7ri8nx86ij30w9hkk";
type = "gem"; type = "gem";
}; };
version = "0.1.10"; version = "0.2.0";
}; };
} }

View File

@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
patches = [ patches = [
(fetchpatch { (fetchpatch {
url = "https://roy.marples.name/cgit/dhcpcd.git/patch/?id=114870290a8d3d696bc4049c32eef3eed03d6070"; name = "?id=114870290a8d3d696bc4049c32eef3eed03d6070";
url = "https://roy.marples.name/git/dhcpcd/commitdiff_plain/114870290a8d3d696bc4049c32eef3eed03d6070";
sha256 = "0kzpwjh2gzvl5lvlnw6lis610p67nassk3apns68ga2pyxlky8qb"; sha256 = "0kzpwjh2gzvl5lvlnw6lis610p67nassk3apns68ga2pyxlky8qb";
}) })
]; ];