diff --git a/pkgs/development/tools/zsv/default.nix b/pkgs/development/tools/zsv/default.nix new file mode 100644 index 000000000000..7a02b42f8f8f --- /dev/null +++ b/pkgs/development/tools/zsv/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, perl, jq }: + +stdenv.mkDerivation rec { + pname = "zsv"; + version = "unstable-2022-11-12"; + + src = fetchFromGitHub { + owner = "liquidaty"; + repo = "zsv"; + rev = "058a990e2086e639d1e11ed8b2ae81b03e4bfcac"; + sha256 = "sha256-V1wkwNSpMsSpaL/j4z4TN59W1+Xn6MYMEWBdwdtTz+s="; + }; + + nativeBuildInputs = [ perl ]; + + buildInputs = [ jq ]; + + configureFlags = [ + "--jq-prefix=${jq.lib}" + ]; + + meta = with lib; { + description = "World's fastest (simd) CSV parser, with an extensible CLI"; + homepage = "https://github.com/liquidaty/zsv"; + license = licenses.mit; + maintainers = with maintainers; [ marsam ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e493af7aa0ac..1bad0ecfc639 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13248,6 +13248,8 @@ with pkgs; cmake = buildPackages.cmakeMinimal; }; + zsv = callPackage ../development/tools/zsv { }; + zsync = callPackage ../tools/compression/zsync { }; zxing = callPackage ../tools/graphics/zxing {};