1 { lib, buildGoModule, fetchFromGitHub, fetchpatch, sqlite }:
5 version = "unstable-2021-07-06";
7 src = fetchFromGitHub {
10 rev = "fca00ecc76c8d9891b195ad2c1359d39f0213604";
11 hash = "sha256-NccRo5YdhwTo2eez5UE5nI3TEqzTL1rjPO1kKfDBNuw=";
15 # fix build with go 1.17
17 url = "https://github.com/jawn-smith/textql/commit/a0d7038c8c30671dfd618f47322814ab492c11a1.patch";
18 sha256 = "1yjdbwipjxxhfcqlj1z6ngsm7dr8gfp4l61jynn2iw7f02cn1yck";
22 vendorHash = "sha256-/DFtZA3Tml+RYTuv1YEUnC37jChTjrC01+zRO7Tj58A=";
25 install -Dm644 -t $out/share/man/man1 ${src}/man/textql.1
29 nativeBuildInputs = [ sqlite ];
34 description = "Execute SQL against structured text like CSV or TSV";
35 homepage = "https://github.com/dinedal/textql";
36 license = licenses.mit;
37 maintainers = with maintainers; [ vrthra ];