From 90ec05be8f7475d0f7f8c8c5e81545d5689f6ab1 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 8 Sep 2021 20:56:13 -0400 Subject: [PATCH] csview: init at 0.3.8 --- pkgs/tools/text/csview/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/tools/text/csview/default.nix diff --git a/pkgs/tools/text/csview/default.nix b/pkgs/tools/text/csview/default.nix new file mode 100644 index 000000000000..60186a6b3b75 --- /dev/null +++ b/pkgs/tools/text/csview/default.nix @@ -0,0 +1,22 @@ +{ fetchFromGitHub, lib, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "csview"; + version = "0.3.8"; + + src = fetchFromGitHub { + owner = "wfxr"; + repo = pname; + rev = "v${version}"; + sha256 = "18bz12yn85h9vj0b18iaziix9km2iwh8gwfs93fddjv6kg87p38q"; + }; + + cargoSha256 = "1my6gl8zq5k7clzapgbf1mmcgq8mmdbhl250rdd1fvfd59wkrwra"; + + meta = with lib; { + description = "A high performance csv viewer with cjk/emoji support"; + homepage = "https://github.com/wfxr/csview"; + license = with licenses; [ mit /* or */ asl20 ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 122658d0848d..dd9376723566 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2442,6 +2442,8 @@ with pkgs; csv2odf = callPackage ../applications/office/csv2odf { }; + csview = callPackage ../tools/text/csview { }; + csvkit = callPackage ../tools/text/csvkit { }; csvtool = callPackage ../development/ocaml-modules/csv/csvtool.nix { };