default.nix (873B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pcre, 6 openssl, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "csvtools"; 11 version = "0-unstable-2023-10-10"; 12 13 src = fetchFromGitHub { 14 owner = "DavyLandman"; 15 repo = "csvtools"; 16 rev = "0162d828ec7500cf01080f73fd28387a9cdada92"; 17 hash = "sha256-avdnbdKh/GFibIFfKmmLLcZOvijnQmJb5VNgaZA+NiY="; 18 }; 19 20 buildInputs = [ pcre ]; 21 22 makeFlags = [ "prefix=$(out)" ]; 23 enableParallelBuilding = true; 24 25 doCheck = false; # Failed (csvawk crashed) 26 nativeCheckInputs = [ openssl ]; 27 28 preCheck = "patchShebangs ."; 29 30 preInstall = "mkdir -p $out/bin"; 31 32 meta = { 33 description = "GNU-alike tools for parsing RFC 4180 CSVs at high speed"; 34 homepage = "https://github.com/DavyLandman/csvtools"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.sikmir ]; 37 platforms = lib.platforms.unix; 38 }; 39 })