textql: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-03 18:42:33 +02:00
parent 17770101b5
commit bce93755b9
5 changed files with 39 additions and 21 deletions

View file

@ -211,8 +211,8 @@
"fetch": {
"type": "git",
"url": "https://github.com/mattn/go-sqlite3",
"rev": "c5aee9649735e8dadac55eb968ccebd9fa29a881",
"sha256": "1505piq2mks6s77hfzrlv2siiqpy55lxgy1h9364jfz0baxjqpas"
"rev": "b4142c444a8941d0d92b0b7103a24df9cd815e42",
"sha256": "0xq2y4am8dz9w9aaq24s1npg1sn8pf2gn4nki73ylz2fpjwq9vla"
}
},
{
@ -476,4 +476,4 @@
"sha256": "04yfnch7pdabjjqfl2qxjmsaknvp4m1rbjlv8qrpmnqwjkxzx0hb"
}
}
]
]

View file

@ -0,0 +1,27 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "textql-${version}";
version = "2.0.3";
rev = "${version}";
goPackagePath = "github.com/dinedal/textql";
src = fetchgit {
inherit rev;
url = "https://github.com/dinedal/textql";
sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3";
};
goDeps = ./deps.json;
meta = with stdenv.lib; {
description = "Execute SQL against structured text like CSV or TSV";
homepage = https://github.com/dinedal/textql;
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}

View file

@ -0,0 +1,8 @@
[
{
"include": "../../libs.json",
"packages": [
"github.com/mattn/go-sqlite3"
]
}
]

View file

@ -3740,7 +3740,7 @@ in
testdisk = callPackage ../tools/misc/testdisk { };
textql = goPackages.textql.bin // { outputs = [ "bin" ]; };
textql = (callPackage ../development/tools/textql { }).bin;
html2text = callPackage ../tools/text/html2text { };

View file

@ -4008,23 +4008,6 @@ let
propagatedBuildInputs = [ ];
};
textql = buildFromGitHub rec {
rev = "1785cd353c68aa34f97627143b9c2908dfd4ea04";
version = "2.0.3";
owner = "dinedal";
repo = "textql";
sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3";
propagatedBuildInputs = [ go-sqlite3 ];
meta = with stdenv.lib; {
description = "Execute SQL against structured text like CSV or TSV";
homepage = https://github.com/dinedal/textql;
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
};
gopsutil = buildFromGitHub rec {
version = "1.0.0";
rev = "37d89088411de59a4ef9fc340afa0e89dfcb4ea9";