1{ lib
2, stdenv
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation rec {
7 pname = "tomlcpp";
8 version = "0.pre+date=2022-05-01";
9
10 src = fetchFromGitHub {
11 owner = "cktan";
12 repo = pname;
13 rev = "59fcc6dc89fb3f4130a2865e41e1fa5b8c502e45";
14 hash = "sha256-Uc6R5KnGIZXY0EJgFM4Xi7Jtxcu6l8yGh5xgFZPoJDM=";
15 };
16
17 patches = [
18 # Self-explaining
19 ./0001-missing-headers.diff
20 ];
21
22 dontConfigure = true;
23
24 installFlags = [
25 "prefix=${placeholder "out"}"
26 ];
27
28 meta = with lib;{
29 homepage = "https://github.com/cktan/tomlcpp";
30 description = "No fanfare TOML C++ Library";
31 license = licenses.mit;
32 maintainers = with maintainers; [ AndersonTorres ];
33 platforms = with platforms; unix;
34 };
35}