Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4e60699fa727
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ddefb5f067f0
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Sep 2, 2019

  1. q-text-as-data: init at 1.7.1

    Nathan van Doorn authored and FRidh committed Sep 2, 2019
    Copy the full SHA
    ddefb5f View commit details
Showing with 37 additions and 0 deletions.
  1. +35 −0 pkgs/tools/misc/q-text-as-data/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
35 changes: 35 additions & 0 deletions pkgs/tools/misc/q-text-as-data/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };