nixpkgs/pkgs/by-name/oc/octosql/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

33 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";
};
}