q-text-as-data: init at 1.7.1
This commit is contained in:
parent
4e60699fa7
commit
ddefb5f067
2 changed files with 37 additions and 0 deletions
35
pkgs/tools/misc/q-text-as-data/default.nix
Normal file
35
pkgs/tools/misc/q-text-as-data/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenvNoCC, fetchFromGitHub, python2 }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "q-text-as-data";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "harelba";
|
||||
repo = "q";
|
||||
rev = version;
|
||||
sha256 = "021c2sd6qscz1ipwzzjf43pfd311dcay7yralksl25rs0r7h3li2";
|
||||
};
|
||||
|
||||
buildInputs = [ python2 ];
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/q $out/bin
|
||||
chmod +x $out/bin/q
|
||||
'';
|
||||
|
||||
meta = with stdenvNoCC.lib; {
|
||||
description = "Run SQL directly on CSV or TSV files";
|
||||
longDescription = ''
|
||||
q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).
|
||||
|
||||
q treats ordinary files as database tables, and supports all SQL constructs, such as WHERE, GROUP BY, JOINs etc. It supports automatic column name and column type detection, and provides full support for multiple encodings.
|
||||
'';
|
||||
homepage = "http://harelba.github.io/q/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.taneb ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -5715,6 +5715,8 @@ in
|
|||
|
||||
ocz-ssd-guru = callPackage ../tools/misc/ocz-ssd-guru { };
|
||||
|
||||
q-text-as-data = callPackage ../tools/misc/q-text-as-data { };
|
||||
|
||||
qalculate-gtk = callPackage ../applications/science/math/qalculate-gtk { };
|
||||
|
||||
qastools = libsForQt5.callPackage ../tools/audio/qastools { };
|
||||
|
|
Loading…
Reference in a new issue