2018-11-21 19:02:14 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2017-03-30 15:11:35 +01:00
|
|
|
|
2018-05-12 21:02:52 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2017-03-30 15:11:35 +01:00
|
|
|
name = "xsv-${version}";
|
2018-05-12 21:02:52 +01:00
|
|
|
version = "0.13.0";
|
2017-03-30 15:11:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BurntSushi";
|
|
|
|
repo = "xsv";
|
2018-05-12 21:02:52 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "17v1nw36mrarrd5yv4xd3mpc1d7lvhd5786mqkzyyraf78pjg045";
|
2017-03-30 15:11:35 +01:00
|
|
|
};
|
|
|
|
|
2019-05-25 12:03:08 +01:00
|
|
|
cargoSha256 = "1xlbszr9ccv924ww45lnc0qqb7nxj2cnc41480xbpvsdqsdrgbhs";
|
2017-03-30 15:11:35 +01:00
|
|
|
|
2018-11-21 19:02:14 +00:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
2018-11-20 10:13:29 +00:00
|
|
|
|
2017-03-30 15:11:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A fast CSV toolkit written in Rust";
|
|
|
|
homepage = https://github.com/BurntSushi/xsv;
|
2018-05-12 21:02:52 +01:00
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
2017-03-30 15:11:35 +01:00
|
|
|
maintainers = [ maintainers.jgertm ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|