nixpkgs/pkgs/tools/misc/octosql/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
814 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "octosql";
2023-06-03 03:23:05 +00:00
version = "0.12.2";
src = fetchFromGitHub {
owner = "cube2222";
repo = pname;
rev = "v${version}";
2023-06-03 03:23:05 +00:00
sha256 = "sha256-jf40w5QkSTAgGu0JA4NeqsasN2TUf9vnKVw5zlZr8Mw=";
};
2023-06-03 03:23:05 +00:00
vendorHash = "sha256-p/2UsvxxywQKtk/9wDa5fjS0z6xLLzDONuQ5AtnUonk=";
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";
};
}