From 1b6189117f304c703794d94bd5ecc82fa1f85637 Mon Sep 17 00:00:00 2001 From: Tim Jaeger Date: Thu, 30 Mar 2017 16:11:35 +0200 Subject: [PATCH] xsv: init at 0.11.0 This commit adds the `xsv` utility. It is quite useful when dealing with CSV files --- pkgs/tools/text/xsv/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/text/xsv/default.nix diff --git a/pkgs/tools/text/xsv/default.nix b/pkgs/tools/text/xsv/default.nix new file mode 100644 index 000000000000..388917e68050 --- /dev/null +++ b/pkgs/tools/text/xsv/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }: + +with rustPlatform; + +buildRustPackage rec { + name = "xsv-${version}"; + version = "0.11.0"; + + src = fetchFromGitHub { + owner = "BurntSushi"; + repo = "xsv"; + rev = "${version}"; + sha256 = "169rp4izcjhhlrqrhvlvsbiz7wqfi6g3kjfgrddgvahp0ls29hls"; + }; + + depsSha256 = "006sp66l2gybyk1n7lxp645k6drz5cgxcix376k8qr0v9jwadlqa"; + + meta = with stdenv.lib; { + description = "A fast CSV toolkit written in Rust"; + homepage = https://github.com/BurntSushi/xsv; + license = with licenses; [ unlicense ]; + maintainers = [ maintainers.jgertm ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61e884366aa2..f297937455bb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4666,6 +4666,8 @@ with pkgs; xsel = callPackage ../tools/misc/xsel { }; + xsv = callPackages ../tools/text/xsv { }; + xtreemfs = callPackage ../tools/filesystems/xtreemfs {}; xurls = callPackage ../tools/text/xurls {};