2022-09-11 15:47:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "octosql";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.12.1";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cube2222";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-ysp9DLpAvaZVZBWZAzwUuULtnO++M1/DAiYHR+4/7vA=";
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-JeVQz6NpekB4boRIxq2JJ3qYHTGj3K3+d5mxSblfvKs=";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/cube2222/octosql/cmd.VERSION=${version}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -v $out/bin/tester
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Commandline tool for joining, analyzing and transforming data from multiple databases and file formats using SQL";
|
|
|
|
homepage = "https://github.com/cube2222/octosql";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ arikgrahl ];
|
|
|
|
};
|
|
|
|
}
|