Files
nixpkgs/pkgs/by-name/to/tomlcpp/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
940 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
}:
stdenv.mkDerivation {
pname = "tomlcpp";
version = "0.pre+date=2022-06-25";
src = fetchFromGitHub {
owner = "cktan";
repo = "tomlcpp";
rev = "4212f1fccf530e276a2e1b63d3f99fbfb84e86a4";
hash = "sha256-PM3gURXhyTZr59BWuLHvltjKOlKUSBT9/rqTeX5V//k=";
};
patches = [
(fetchpatch {
# Use implicit $AR variable in Makefile
# https://github.com/cktan/tomlcpp/pull/6
url = "https://github.com/cktan/tomlcpp/commit/abdb4e0db8b27f719434f5a0d6ec0b1a6b086ded.patch";
hash = "sha256-SurUKdAZNWqBC7ss5nv5mDnJyC3DqxG/Q/FweTrkLnk=";
})
];
dontConfigure = true;
installFlags = [
"prefix=${placeholder "out"}"
];
meta = {
homepage = "https://github.com/cktan/tomlcpp";
description = "No fanfare TOML C++ Library";
license = lib.licenses.mit;
maintainers = [ ];
platforms = with lib.platforms; unix;
};
}