diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/textql/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/textql/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/textql/default.nix b/nixpkgs/pkgs/development/tools/textql/default.nix new file mode 100644 index 000000000000..a3499258a999 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/textql/default.nix @@ -0,0 +1,33 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, sqlite }: + +buildGoPackage rec { + name = "textql-${version}"; + version = "2.0.3"; + + goPackagePath = "github.com/dinedal/textql"; + + src = fetchFromGitHub { + owner = "dinedal"; + repo = "textql"; + rev = version; + sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3"; + }; + + postInstall = '' + install -Dm644 -t $out/share/man/man1 ${src}/man/textql.1 + ''; + + # needed for tests + nativeBuildInputs = [ sqlite ]; + + goDeps = ./deps.nix; + + doCheck = true; + + 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 ]; + }; +} |