depot/pkgs/by-name/oc/octosql/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
812 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "octosql";
version = "0.13.0";
src = fetchFromGitHub {
owner = "cube2222";
repo = pname;
rev = "v${version}";
hash = "sha256-kzbIts5d2KmFfaAnOdpIXI1fiqBYXe5t981g4Uyk/cc=";
};
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 ];
mainProgram = "octosql";
};
}