2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2017-03-30 14:11:35 +00:00
|
|
|
|
2018-05-12 20:02:52 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "xsv";
|
2018-05-12 20:02:52 +00:00
|
|
|
version = "0.13.0";
|
2017-03-30 14:11:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BurntSushi";
|
|
|
|
repo = "xsv";
|
2018-05-12 20:02:52 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "17v1nw36mrarrd5yv4xd3mpc1d7lvhd5786mqkzyyraf78pjg045";
|
2017-03-30 14:11:35 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "1bh60zgflaa5n914irkr4bpq3m4h2ngcj6bp5xx1qj112dwgvmyb";
|
2017-03-30 14:11:35 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2018-11-20 10:13:29 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-30 14:11:35 +00:00
|
|
|
description = "A fast CSV toolkit written in Rust";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/BurntSushi/xsv";
|
2018-05-12 20:02:52 +00:00
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
2017-03-30 14:11:35 +00:00
|
|
|
maintainers = [ maintainers.jgertm ];
|
|
|
|
};
|
|
|
|
}
|