Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "fast-cpp-csv-parser"; 9 version = "2021-01-03"; 10 11 src = fetchFromGitHub { 12 owner = "ben-strasser"; 13 repo = "fast-cpp-csv-parser"; 14 rev = "75600d0b77448e6c410893830df0aec1dbacf8e3"; 15 sha256 = "04kalwgsr8khqr1j5j13vzwaml268c5dvc9wfcwfs13wp3snqwf2"; 16 }; 17 18 installPhase = '' 19 mkdir -p $out/lib/pkgconfig $out/include 20 cp -r *.h $out/include/ 21 substituteAll ${./fast-cpp-csv-parser.pc.in} $out/lib/pkgconfig/fast-cpp-csv-parser.pc 22 ''; 23 24 meta = with lib; { 25 description = "Small, easy-to-use and fast header-only library for reading comma separated value (CSV) files"; 26 homepage = "https://github.com/ben-strasser/fast-cpp-csv-parser"; 27 license = licenses.bsd3; 28 maintainers = with maintainers; [ bhipple ]; 29 }; 30}