2022-09-10 19:32:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "octosql";
|
2024-05-12 00:23:57 +00:00
|
|
|
version = "0.13.0";
|
2022-09-10 19:32:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cube2222";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-kzbIts5d2KmFfaAnOdpIXI1fiqBYXe5t981g4Uyk/cc=";
|
2022-09-10 19:32:54 +00:00
|
|
|
};
|
|
|
|
|
2023-06-03 03:23:05 +00:00
|
|
|
vendorHash = "sha256-p/2UsvxxywQKtk/9wDa5fjS0z6xLLzDONuQ5AtnUonk=";
|
2022-09-10 19:32:54 +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 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "octosql";
|
2022-09-10 19:32:54 +00:00
|
|
|
};
|
|
|
|
}
|