textql: extracted from goPackages
This commit is contained in:
parent
17770101b5
commit
bce93755b9
@ -211,8 +211,8 @@
|
|||||||
"fetch": {
|
"fetch": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/mattn/go-sqlite3",
|
"url": "https://github.com/mattn/go-sqlite3",
|
||||||
"rev": "c5aee9649735e8dadac55eb968ccebd9fa29a881",
|
"rev": "b4142c444a8941d0d92b0b7103a24df9cd815e42",
|
||||||
"sha256": "1505piq2mks6s77hfzrlv2siiqpy55lxgy1h9364jfz0baxjqpas"
|
"sha256": "0xq2y4am8dz9w9aaq24s1npg1sn8pf2gn4nki73ylz2fpjwq9vla"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
27
pkgs/development/tools/textql/default.nix
Normal file
27
pkgs/development/tools/textql/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
8
pkgs/development/tools/textql/deps.json
Normal file
8
pkgs/development/tools/textql/deps.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"include": "../../libs.json",
|
||||||
|
"packages": [
|
||||||
|
"github.com/mattn/go-sqlite3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
@ -3740,7 +3740,7 @@ in
|
|||||||
|
|
||||||
testdisk = callPackage ../tools/misc/testdisk { };
|
testdisk = callPackage ../tools/misc/testdisk { };
|
||||||
|
|
||||||
textql = goPackages.textql.bin // { outputs = [ "bin" ]; };
|
textql = (callPackage ../development/tools/textql { }).bin;
|
||||||
|
|
||||||
html2text = callPackage ../tools/text/html2text { };
|
html2text = callPackage ../tools/text/html2text { };
|
||||||
|
|
||||||
|
@ -4008,23 +4008,6 @@ let
|
|||||||
propagatedBuildInputs = [ ];
|
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 {
|
gopsutil = buildFromGitHub rec {
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
rev = "37d89088411de59a4ef9fc340afa0e89dfcb4ea9";
|
rev = "37d89088411de59a4ef9fc340afa0e89dfcb4ea9";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user