about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/fast-cpp-csv-parser/default.nix
blob: 5a81e3f727463b6bf37db622b67813a1bdce0ae8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "fast-cpp-csv-parser";
  version = "2021-01-03";

  src = fetchFromGitHub {
    owner = "ben-strasser";
    repo = pname;
    rev = "75600d0b77448e6c410893830df0aec1dbacf8e3";
    sha256 = "04kalwgsr8khqr1j5j13vzwaml268c5dvc9wfcwfs13wp3snqwf2";
  };

  installPhase = ''
    mkdir -p $out/lib/pkgconfig $out/include
    cp -r *.h $out/include/
    substituteAll ${./fast-cpp-csv-parser.pc.in} $out/lib/pkgconfig/fast-cpp-csv-parser.pc
  '';

  meta = with lib; {
    description = "A small, easy-to-use and fast header-only library for reading comma separated value (CSV) files";
    homepage = "https://github.com/ben-strasser/fast-cpp-csv-parser";
    license = licenses.bsd3;
    maintainers = with maintainers; [ bhipple ];
  };
}