diff options
author | Arik Grahl <arikgrahl@users.noreply.github.com> | 2022-09-10 21:32:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 21:32:54 +0200 |
commit | 0ad8b1da22374bc1eb34ad48b1b66e7cf422c361 (patch) | |
tree | d8f416715912dd5c807b8e12e1d92efd91a98432 /pkgs/tools/misc/octosql | |
parent | 785031e4301ff338dd6c2c234d8df83cef47f00d (diff) |
octosql: init at 0.9.3 (#190467)
Co-authored-by: Arik Grahl <mail@arik-grahl.de>
Diffstat (limited to 'pkgs/tools/misc/octosql')
-rw-r--r-- | pkgs/tools/misc/octosql/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/octosql/default.nix b/pkgs/tools/misc/octosql/default.nix new file mode 100644 index 0000000000000..8a31ab58fa8c8 --- /dev/null +++ b/pkgs/tools/misc/octosql/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "octosql"; + version = "0.9.3"; + + src = fetchFromGitHub { + owner = "cube2222"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-Y6kKYW79415nCJkcIKQjcBQiFZrRCJ8If65lV9wmNFA="; + }; + + vendorSha256 = "sha256-ukNjLk1tTdw0bwXaYAEDuHfzxHuAX1xyqRqC6wmW/H4="; + + 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 ]; + }; +} |