1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "fast-cpp-csv-parser";
5 version = "2021-01-03";
7 src = fetchFromGitHub {
8 owner = "ben-strasser";
10 rev = "75600d0b77448e6c410893830df0aec1dbacf8e3";
11 sha256 = "04kalwgsr8khqr1j5j13vzwaml268c5dvc9wfcwfs13wp3snqwf2";
15 mkdir -p $out/lib/pkgconfig $out/include
16 cp -r *.h $out/include/
17 substituteAll ${./fast-cpp-csv-parser.pc.in} $out/lib/pkgconfig/fast-cpp-csv-parser.pc
21 description = "Small, easy-to-use and fast header-only library for reading comma separated value (CSV) files";
22 homepage = "https://github.com/ben-strasser/fast-cpp-csv-parser";
23 license = licenses.bsd3;
24 maintainers = with maintainers; [ bhipple ];