mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
commit
a52d233ec5
|
@ -33,6 +33,11 @@
|
|||
github = "Anton-Latukha";
|
||||
name = "Anton Latukha";
|
||||
};
|
||||
ariutta = {
|
||||
email = "anders.riutta@gmail.com";
|
||||
github = "ariutta";
|
||||
name = "Anders Riutta";
|
||||
};
|
||||
Baughn = {
|
||||
email = "sveina@gmail.com";
|
||||
github = "Baughn";
|
||||
|
|
2
pkgs/development/tools/sqlint/Gemfile
Normal file
2
pkgs/development/tools/sqlint/Gemfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
source 'https://rubygems.org'
|
||||
gem 'sqlint'
|
17
pkgs/development/tools/sqlint/Gemfile.lock
Normal file
17
pkgs/development/tools/sqlint/Gemfile.lock
Normal file
|
@ -0,0 +1,17 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
json (2.1.0)
|
||||
pg_query (1.0.0)
|
||||
json (>= 1.8, < 3)
|
||||
sqlint (0.1.7)
|
||||
pg_query (~> 0.13.5)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
sqlint
|
||||
|
||||
BUNDLED WITH
|
||||
1.14.6
|
34
pkgs/development/tools/sqlint/default.nix
Normal file
34
pkgs/development/tools/sqlint/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib, bundlerApp, fetchurl, ruby }:
|
||||
|
||||
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 {
|
||||
pname = "sqlint";
|
||||
gemdir = ./.;
|
||||
inherit ruby;
|
||||
|
||||
exes = [ "sqlint" ];
|
||||
|
||||
gemConfig = {
|
||||
pg_query = attrs: {
|
||||
dontBuild = false;
|
||||
postPatch = ''
|
||||
substituteInPlace ext/pg_query/extconf.rb \
|
||||
--replace "#{workdir}/libpg_query.tar.gz" "${libpgQuerySrc}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple SQL linter";
|
||||
homepage = https://github.com/purcell/sqlint;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ariutta ];
|
||||
platforms = with platforms; [ "x86_64-linux" "x86_64-darwin" ];
|
||||
};
|
||||
}
|
28
pkgs/development/tools/sqlint/gemset.nix
Normal file
28
pkgs/development/tools/sqlint/gemset.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
json = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.1.0";
|
||||
};
|
||||
pg_query = {
|
||||
dependencies = ["json"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0zgwnrf5mkpkxfh49r2pvh2djivrbqd19350g8hxapmkya9w3qpi";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.0.0";
|
||||
};
|
||||
sqlint = {
|
||||
dependencies = ["pg_query"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1wm81dgdmgc16b97bz73vm0wjd2m1ra1b40h0kwfd9wgrh9ig2al";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.7";
|
||||
};
|
||||
}
|
|
@ -1487,6 +1487,8 @@ with pkgs;
|
|||
utillinux = utillinuxMinimal;
|
||||
};
|
||||
|
||||
sqlint = callPackage ../development/tools/sqlint { };
|
||||
|
||||
antibody = callPackage ../shells/zsh/antibody { };
|
||||
|
||||
antigen = callPackage ../shells/zsh/antigen { };
|
||||
|
|
Loading…
Reference in a new issue