3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/textql/default.nix

34 lines
766 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub, sqlite }:
2016-06-03 17:42:33 +01:00
buildGoPackage rec {
name = "textql-${version}";
version = "2.0.3";
2017-09-22 20:24:43 +01:00
2016-06-03 17:42:33 +01:00
goPackagePath = "github.com/dinedal/textql";
src = fetchFromGitHub {
2018-04-09 08:55:39 +01:00
owner = "dinedal";
repo = "textql";
rev = version;
2016-06-03 17:42:33 +01:00
sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3";
};
2018-04-09 08:55:39 +01:00
postInstall = ''
install -Dm644 -t $out/share/man/man1 ${src}/man/textql.1
'';
# needed for tests
nativeBuildInputs = [ sqlite ];
goDeps = ./deps.nix;
2016-06-03 17:42:33 +01:00
2018-04-09 08:55:39 +01:00
doCheck = true;
2016-06-03 17:42:33 +01:00
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 ];
};
}