git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41901 from ariutta/sqlint

sqlint: init at 0.1.7

commita52d233ec5c524d08cdfddc9735bbcbb08b5d867 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 18 Jun 2018, 10:43 (8 years ago) parentf61eb5d5fb615d
6 files changed+88
maintainers/maintainer-list.nix+5 pkgs/development/tools/sqlint/Gemfile+2 pkgs/development/tools/sqlint/Gemfile.lock+17 pkgs/development/tools/sqlint/default.nix+34 pkgs/development/tools/sqlint/gemset.nix+28 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+5
@@ -33,6 +33,11 @@
3333 github = "Anton-Latukha";
3434 name = "Anton Latukha";
3535 };
36+ ariutta = {
37+ email = "anders.riutta@gmail.com";
38+ github = "ariutta";
39+ name = "Anders Riutta";
40+ };
3641 Baughn = {
3742 email = "sveina@gmail.com";
3843 github = "Baughn";
pkgs/development/tools/sqlint/Gemfilenew file+2
@@ -0,0 +1,2 @@
1+source 'https://rubygems.org'
2+gem 'sqlint'
pkgs/development/tools/sqlint/Gemfile.locknew file+17
@@ -0,0 +1,17 @@
1+GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ json (2.1.0)
5+ pg_query (1.0.0)
6+ json (>= 1.8, < 3)
7+ sqlint (0.1.7)
8+ pg_query (~> 0.13.5)
9+
10+PLATFORMS
11+ ruby
12+
13+DEPENDENCIES
14+ sqlint
15+
16+BUNDLED WITH
17+ 1.14.6
pkgs/development/tools/sqlint/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ lib, bundlerApp, fetchurl, ruby }:
2+
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 {
11+ pname = "sqlint";
12+ gemdir = ./.;
13+ inherit ruby;
14+
15+ exes = [ "sqlint" ];
16+
17+ gemConfig = {
18+ pg_query = attrs: {
19+ dontBuild = false;
20+ postPatch = ''
21+ substituteInPlace ext/pg_query/extconf.rb \
22+ --replace "#{workdir}/libpg_query.tar.gz" "${libpgQuerySrc}"
23+ '';
24+ };
25+ };
26+
27+ meta = with lib; {
28+ description = "Simple SQL linter";
29+ homepage = https://github.com/purcell/sqlint;
30+ license = licenses.mit;
31+ maintainers = with maintainers; [ ariutta ];
32+ platforms = with platforms; [ "x86_64-linux" "x86_64-darwin" ];
33+ };
34+}
pkgs/development/tools/sqlint/gemset.nixnew file+28
@@ -0,0 +1,28 @@
1+{
2+ json = {
3+ source = {
4+ remotes = ["https://rubygems.org"];
5+ sha256 = "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp";
6+ type = "gem";
7+ };
8+ version = "2.1.0";
9+ };
10+ pg_query = {
11+ dependencies = ["json"];
12+ source = {
13+ remotes = ["https://rubygems.org"];
14+ sha256 = "0zgwnrf5mkpkxfh49r2pvh2djivrbqd19350g8hxapmkya9w3qpi";
15+ type = "gem";
16+ };
17+ version = "1.0.0";
18+ };
19+ sqlint = {
20+ dependencies = ["pg_query"];
21+ source = {
22+ remotes = ["https://rubygems.org"];
23+ sha256 = "1wm81dgdmgc16b97bz73vm0wjd2m1ra1b40h0kwfd9wgrh9ig2al";
24+ type = "gem";
25+ };
26+ version = "0.1.7";
27+ };
28+}
pkgs/top-level/all-packages.nix+2
@@ -1487,6 +1487,8 @@ with pkgs;
14871487 utillinux = utillinuxMinimal;
14881488 };
14891489
1490+ sqlint = callPackage ../development/tools/sqlint { };
1491+
14901492 antibody = callPackage ../shells/zsh/antibody { };
14911493
14921494 antigen = callPackage ../shells/zsh/antigen { };