16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-RfW7SiRcsN0F/+2bixLMNsqJCOSD1BQwlm4Zm2kogXM=";
23 vendorHash = "sha256-5RqAtnGioasbQxLltglCWitzb7mQgNYIE9IFkE0AOME=";
25 nativeBuildInputs = [ installShellFiles ];
30 if stdenv.buildPlatform.canExecute stdenv.hostPlatform then
33 lib.getBin buildPackages.csvtk;
36 for shell in bash zsh fish; do
37 ${csvtkBin}/bin/csvtk genautocomplete --shell $shell --file csvtk.$shell
38 installShellCompletion csvtk.$shell
43 description = "Cross-platform, efficient and practical CSV/TSV toolkit in Golang";
44 changelog = "https://github.com/shenwei356/csvtk/releases/tag/v${version}";
45 homepage = "https://github.com/shenwei356/csvtk";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
48 mainProgram = "csvtk";