textql: run tests and install man page
This commit is contained in:
parent
7578dde34e
commit
cb3cf8b3b9
|
@ -1,21 +1,29 @@
|
||||||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, sqlite }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "textql-${version}";
|
name = "textql-${version}";
|
||||||
version = "2.0.3";
|
version = "2.0.3";
|
||||||
rev = "${version}";
|
|
||||||
|
|
||||||
goPackagePath = "github.com/dinedal/textql";
|
goPackagePath = "github.com/dinedal/textql";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
owner = "dinedal";
|
||||||
owner = "dinedal";
|
repo = "textql";
|
||||||
repo = "textql";
|
rev = version;
|
||||||
sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3";
|
sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm644 -t $out/share/man/man1 ${src}/man/textql.1
|
||||||
|
'';
|
||||||
|
|
||||||
|
# needed for tests
|
||||||
|
nativeBuildInputs = [ sqlite ];
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Execute SQL against structured text like CSV or TSV";
|
description = "Execute SQL against structured text like CSV or TSV";
|
||||||
homepage = https://github.com/dinedal/textql;
|
homepage = https://github.com/dinedal/textql;
|
||||||
|
|
Loading…
Reference in New Issue