Files
nixpkgs/pkgs/by-name/fa/fast-cpp-csv-parser/package.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
768 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "fast-cpp-csv-parser";
version = "2021-01-03";
src = fetchFromGitHub {
owner = "ben-strasser";
repo = "fast-cpp-csv-parser";
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 = {
description = "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 = lib.licenses.bsd3;
};
}