Provide NixOS module option to enable the paperless exporter. (#242084)
[NixPkgs.git] / pkgs / by-name / fa / fast-cpp-csv-parser / package.nix
blob13a2e2dbc5a3d860f1be19276c9391f73ce1286d
2   lib,
3   stdenv,
4   fetchFromGitHub,
5 }:
7 stdenv.mkDerivation rec {
8   pname = "fast-cpp-csv-parser";
9   version = "2021-01-03";
11   src = fetchFromGitHub {
12     owner = "ben-strasser";
13     repo = pname;
14     rev = "75600d0b77448e6c410893830df0aec1dbacf8e3";
15     sha256 = "04kalwgsr8khqr1j5j13vzwaml268c5dvc9wfcwfs13wp3snqwf2";
16   };
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   '';
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   };